Class FlowerBlock

Direct Known Subclasses:
RedFlowerBlock, YellowFlowerBlock

public abstract class FlowerBlock extends PlantBlock
Mappings:
Namespace Name
official ano
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 Lano;a:Latz;
      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

    • getCollisionBox

      public Box getCollisionBox(BlockState state, BlockView view, BlockPos pos)
      Overrides:
      getCollisionBox in class PlantBlock
      Mappings:
      Namespace Name Mixin selector
      official b Lalu;b(Latl;Lajw;Lco;)Lbdt;
      intermediary method_11554 Lnet/minecraft/class_197;method_11554(Lnet/minecraft/class_2232;Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;)Lnet/minecraft/class_231;
      named getCollisionBox Lnet/minecraft/block/Block;getCollisionBox(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/util/math/Box;
    • 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 Lalu;d(Latl;)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
    • method_13700

      @Environment(CLIENT) public void method_13700(Item item, ItemGroup itemGroup, DefaultedList<ItemStack> defaultedList)
      Overrides:
      method_13700 in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lalu;a(Lafh;Laej;Ldd;)V
      intermediary method_13700 Lnet/minecraft/class_197;method_13700(Lnet/minecraft/class_1069;Lnet/minecraft/class_1041;Lnet/minecraft/class_3114;)V
      named method_13700 Lnet/minecraft/block/Block;method_13700(Lnet/minecraft/item/Item;Lnet/minecraft/item/itemgroup/ItemGroup;Lnet/minecraft/util/collection/DefaultedList;)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 Lalu;a(I)Latl;
      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 Lano;e()Lano$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 Lano;g()Laub;
      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 Lalu;e(Latl;)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 Lalu;b()Latm;
      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

      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 u Lalu;u()Lalu$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;