Class FlowerBlock

Direct Known Subclasses:
RedFlowerBlock, YellowFlowerBlock

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

    • field_921

      protected EnumProperty<FlowerBlock.FlowerType> field_921
      Mappings:
      Namespace Name Mixin selector
      official a Lagw;a:Lamm;
      intermediary field_921 Lnet/minecraft/class_211;field_921:Lnet/minecraft/class_390;
      named field_921 Lnet/minecraft/block/FlowerBlock;field_921: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 Lafh;a(Lalz;)I
      intermediary method_672 Lnet/minecraft/class_160;method_672(Lnet/minecraft/class_376;)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 Lafh;a(Lzw;Lyz;Ljava/util/List;)V
      intermediary method_682 Lnet/minecraft/class_160;method_682(Lnet/minecraft/class_2054;Lnet/minecraft/class_2029;Ljava/util/List;)V
      named appendItemStacks Lnet/minecraft/block/Block;appendItemStacks(Lnet/minecraft/item/Item;Lnet/minecraft/item/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 Lafh;a(I)Lalz;
      intermediary method_637 Lnet/minecraft/class_160;method_637(I)Lnet/minecraft/class_376;
      named stateFromData Lnet/minecraft/block/Block;stateFromData(I)Lnet/minecraft/block/BlockState;
    • getColor

      public abstract FlowerBlock.Color getColor()
      Mappings:
      Namespace Name Mixin selector
      official l Lagw;l()Lagw$b;
      intermediary method_858 Lnet/minecraft/class_211;method_858()Lnet/minecraft/class_211$class_213;
      named getColor Lnet/minecraft/block/FlowerBlock;getColor()Lnet/minecraft/block/FlowerBlock$Color;
    • method_859

      public Property<FlowerBlock.FlowerType> method_859()
      Mappings:
      Namespace Name Mixin selector
      official n Lagw;n()Lamo;
      intermediary method_859 Lnet/minecraft/class_211;method_859()Lnet/minecraft/class_392;
      named method_859 Lnet/minecraft/block/FlowerBlock;method_859()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 Lafh;c(Lalz;)I
      intermediary method_706 Lnet/minecraft/class_160;method_706(Lnet/minecraft/class_376;)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 Lafh;e()Lama;
      intermediary method_714 Lnet/minecraft/class_160;method_714()Lnet/minecraft/class_378;
      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 R Lafh;R()Lafh$a;
      intermediary method_632 Lnet/minecraft/class_160;method_632()Lnet/minecraft/class_160$class_161;
      named getOffsetType Lnet/minecraft/block/Block;getOffsetType()Lnet/minecraft/block/Block$OffsetType;