Class FlowerBlock

Direct Known Subclasses:
RedFlowerBlock, YellowFlowerBlock

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

    • field_9419

      protected EnumProperty<FlowerBlock.FlowerType> field_9419
      Mappings:
      Namespace Name Mixin selector
      official a Lalm;a:Larq;
      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 d Lajt;d(Lard;)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<ItemStack> 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 Lajt;a(Lado;Lacq;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 Lajt;a(I)Lard;
      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;
    • getColor

      public abstract FlowerBlock.Color getColor()
      Mappings:
      Namespace Name Mixin selector
      official e Lalm;e()Lalm$b;
      intermediary method_8780 Lnet/minecraft/class_112;method_8780()Lnet/minecraft/class_112$class_2186;
      named getColor Lnet/minecraft/block/FlowerBlock;getColor()Lnet/minecraft/block/FlowerBlock$Color;
    • method_8781

      public Property<FlowerBlock.FlowerType> method_8781()
      Mappings:
      Namespace Name Mixin selector
      official g Lalm;g()Lars;
      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 e Lajt;e(Lard;)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 b Lajt;b()Lare;
      intermediary method_8676 Lnet/minecraft/class_197;method_8676()Lnet/minecraft/class_2233;
      named appendProperties Lnet/minecraft/block/Block;appendProperties()Lnet/minecraft/state/StateManager;
    • getOffsetType

      @Environment(CLIENT) public Block.OffsetType getOffsetType()
      Returns the block's offset type. Used by grass and flowers.
      Overrides:
      getOffsetType in class Block
      Returns:
      The block's offset type
      Mappings:
      Namespace Name Mixin selector
      official v Lajt;v()Lajt$a;
      intermediary method_8634 Lnet/minecraft/class_197;method_8634()Lnet/minecraft/class_197$class_2177;
      named getOffsetType Lnet/minecraft/block/Block;getOffsetType()Lnet/minecraft/block/Block$OffsetType;