Class FlowerBlock

Direct Known Subclasses:
RedFlowerBlock, YellowFlowerBlock

public abstract class FlowerBlock extends PlantBlock
Mappings:
Namespace Name
official avy
intermediary net/minecraft/class_112
named net/minecraft/block/FlowerBlock
  • Field Details

    • field_9419

      protected EnumProperty field_9419
      Mappings:
      Namespace Name Mixin selector
      official a Lavy;a:Lbev;
      intermediary field_9419 Lnet/minecraft/class_112;field_9419:Lnet/minecraft/class_2245;
      named field_9419 Lnet/minecraft/block/FlowerBlock;field_9419:Lnet/minecraft/state/property/EnumProperty;
  • Constructor Details

    • FlowerBlock

      protected FlowerBlock()
  • Method Details

    • getMeta

      public int getMeta(BlockState state)
      Returns the metadata value for a certain BlockState
      Overrides:
      getMeta in class Block
      Parameters:
      state - The BlockState
      Returns:
      Metadata value
      Mappings:
      Namespace Name Mixin selector
      official a Latr;a(Lbec;)I
      intermediary method_8655 Lnet/minecraft/class_197;method_8655(Lnet/minecraft/class_2232;)I
      named getMeta Lnet/minecraft/block/Block;getMeta(Lnet/minecraft/block/BlockState;)I
    • appendItemStacks

      @Environment(CLIENT) public void appendItemStacks(Item item, ItemGroup group, List stacks)
      Appends ItemStacks to an itemgroup. Only called on the client.
      Overrides:
      appendItemStacks in class Block
      Parameters:
      item - The Item that must be added
      group - The ItemGroup that the item must be added to
      stacks - The list of currently added ItemStacks to the ItemGroup
      Mappings:
      Namespace Name Mixin selector
      official a Latr;a(Lalq;Lakf;Ljava/util/List;)V
      intermediary method_399 Lnet/minecraft/class_197;method_399(Lnet/minecraft/class_1069;Lnet/minecraft/class_1041;Ljava/util/List;)V
      named appendItemStacks Lnet/minecraft/block/Block;appendItemStacks(Lnet/minecraft/item/Item;Lnet/minecraft/item/itemgroup/ItemGroup;Ljava/util/List;)V
    • stateFromData

      public BlockState stateFromData(int data)
      Returns a blockstate of the current block from it's id
      Overrides:
      stateFromData in class Block
      Parameters:
      data - The Blockstate's associated data value
      Returns:
      The Default state
      Mappings:
      Namespace Name Mixin selector
      official a Latr;a(I)Lbec;
      intermediary method_8635 Lnet/minecraft/class_197;method_8635(I)Lnet/minecraft/class_2232;
      named stateFromData Lnet/minecraft/block/Block;stateFromData(I)Lnet/minecraft/block/BlockState;
    • method_8780

      public abstract class_2186 method_8780()
      Mappings:
      Namespace Name Mixin selector
      official j Lavy;j()Lawc;
      intermediary method_8780 Lnet/minecraft/class_112;method_8780()Lnet/minecraft/class_2186;
      named method_8780 Lnet/minecraft/block/FlowerBlock;method_8780()Lnet/minecraft/class_2186;
    • method_8781

      public Property method_8781()
      Mappings:
      Namespace Name Mixin selector
      official l Lavy;l()Lbex;
      intermediary method_8781 Lnet/minecraft/class_112;method_8781()Lnet/minecraft/class_2247;
      named method_8781 Lnet/minecraft/block/FlowerBlock;method_8781()Lnet/minecraft/state/property/Property;
    • getData

      public int getData(BlockState state)
      Returns the data value for a blockstate Throws an IllegalArmumentException as this method does not work
      Overrides:
      getData in class Block
      Parameters:
      state - The Blockstate
      Returns:
      Zero
      Mappings:
      Namespace Name Mixin selector
      official c Latr;c(Lbec;)I
      intermediary method_8671 Lnet/minecraft/class_197;method_8671(Lnet/minecraft/class_2232;)I
      named getData Lnet/minecraft/block/Block;getData(Lnet/minecraft/block/BlockState;)I
    • appendProperties

      protected StateManager appendProperties()
      Returns a new state manager with a property array.
      Overrides:
      appendProperties in class Block
      Returns:
      New state manager
      Mappings:
      Namespace Name Mixin selector
      official e Latr;e()Lbed;
      intermediary method_8676 Lnet/minecraft/class_197;method_8676()Lnet/minecraft/class_2233;
      named appendProperties Lnet/minecraft/block/Block;appendProperties()Lnet/minecraft/state/StateManager;
    • method_8634

      @Environment(CLIENT) public class_2177 method_8634()
      Overrides:
      method_8634 in class Block
      Mappings:
      Namespace Name Mixin selector
      official Q Latr;Q()Latw;
      intermediary method_8634 Lnet/minecraft/class_197;method_8634()Lnet/minecraft/class_2177;
      named method_8634 Lnet/minecraft/block/Block;method_8634()Lnet/minecraft/class_2177;