Class DoublePlantBlock

All Implemented Interfaces:
Growable

public class DoublePlantBlock extends PlantBlock implements Growable
Mappings:
Namespace Name
official akw
intermediary net/minecraft/class_1755
named net/minecraft/block/DoublePlantBlock
  • Field Details

    • VARIANT

      public static final EnumProperty<DoublePlantBlock.DoublePlantType> VARIANT
      Mappings:
      Namespace Name Mixin selector
      official a Lakw;a:Larq;
      intermediary field_9381 Lnet/minecraft/class_1755;field_9381:Lnet/minecraft/class_2245;
      named VARIANT Lnet/minecraft/block/DoublePlantBlock;VARIANT:Lnet/minecraft/state/property/EnumProperty;
    • HALF

      public static final EnumProperty<DoublePlantBlock.HalfType> HALF
      Mappings:
      Namespace Name Mixin selector
      official c Lakw;c:Larq;
      intermediary field_9382 Lnet/minecraft/class_1755;field_9382:Lnet/minecraft/class_2245;
      named HALF Lnet/minecraft/block/DoublePlantBlock;HALF:Lnet/minecraft/state/property/EnumProperty;
    • FACING

      public static final EnumProperty<Direction> FACING
      Mappings:
      Namespace Name Mixin selector
      official d Lakw;d:Larq;
      intermediary field_9380 Lnet/minecraft/class_1755;field_9380:Lnet/minecraft/class_2245;
      named FACING Lnet/minecraft/block/DoublePlantBlock;FACING:Lnet/minecraft/state/property/EnumProperty;
  • Constructor Details

    • DoublePlantBlock

      public DoublePlantBlock()
  • Method Details

    • getCollisionBox

      public Box getCollisionBox(BlockState state, BlockView view, BlockPos pos)
      Overrides:
      getCollisionBox in class PlantBlock
      Mappings:
      Namespace Name Mixin selector
      official a Lajt;a(Lard;Lahx;Lcl;)Lbbf;
      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;
    • method_11606

      private DoublePlantBlock.DoublePlantType method_11606(BlockView blockView, BlockPos blockPos, BlockState blockState)
      Mappings:
      Namespace Name Mixin selector
      official a Lakw;a(Lahx;Lcl;Lard;)Lakw$b;
      intermediary method_11606 Lnet/minecraft/class_1755;method_11606(Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)Lnet/minecraft/class_1755$class_2184;
      named method_11606 Lnet/minecraft/block/DoublePlantBlock;method_11606(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Lnet/minecraft/block/DoublePlantBlock$DoublePlantType;
    • canBePlacedAtPos

      public boolean canBePlacedAtPos(World world, BlockPos pos)
      Returns whether the current block can be placed at a certain BlockPos
      Overrides:
      canBePlacedAtPos in class PlantBlock
      Returns:
      Whether the current block can be placed at a BlockPos
      Mappings:
      Namespace Name Mixin selector
      official a Lajt;a(Laht;Lcl;)Z
      intermediary method_8673 Lnet/minecraft/class_197;method_8673(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;)Z
      named canBePlacedAtPos Lnet/minecraft/block/Block;canBePlacedAtPos(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;)Z
    • method_8638

      public boolean method_8638(BlockView blockView, BlockPos blockPos)
      Overrides:
      method_8638 in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lajt;a(Lahx;Lcl;)Z
      intermediary method_8638 Lnet/minecraft/class_197;method_8638(Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;)Z
      named method_8638 Lnet/minecraft/block/Block;method_8638(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Z
    • method_8690

      protected void method_8690(World world, BlockPos blockPos, BlockState blockState)
      Overrides:
      method_8690 in class PlantBlock
      Mappings:
      Namespace Name Mixin selector
      official e Lajy;e(Laht;Lcl;Lard;)V
      intermediary method_8690 Lnet/minecraft/class_1754;method_8690(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)V
      named method_8690 Lnet/minecraft/block/PlantBlock;method_8690(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
    • method_8691

      public boolean method_8691(World world, BlockPos pos, BlockState state)
      Overrides:
      method_8691 in class PlantBlock
      Mappings:
      Namespace Name Mixin selector
      official f Lajy;f(Laht;Lcl;Lard;)Z
      intermediary method_8691 Lnet/minecraft/class_1754;method_8691(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)Z
      named method_8691 Lnet/minecraft/block/PlantBlock;method_8691(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Z
    • getDropItem

      @Nullable public Item getDropItem(BlockState blockState, Random random, int state)
      Returns the item that must be dropped when the block is broken
      Overrides:
      getDropItem in class Block
      Parameters:
      blockState - The block's BlockState
      random - Random object
      state - State
      Returns:
      The Item that drops after the block breaks
      Mappings:
      Namespace Name Mixin selector
      official a Lajt;a(Lard;Ljava/util/Random;I)Lado;
      intermediary method_398 Lnet/minecraft/class_197;method_398(Lnet/minecraft/class_2232;Ljava/util/Random;I)Lnet/minecraft/class_1069;
      named getDropItem Lnet/minecraft/block/Block;getDropItem(Lnet/minecraft/block/BlockState;Ljava/util/Random;I)Lnet/minecraft/item/Item;
    • 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
    • method_8752

      public void method_8752(World world, BlockPos blockPos, DoublePlantBlock.DoublePlantType doublePlantType, int int2)
      Mappings:
      Namespace Name Mixin selector
      official a Lakw;a(Laht;Lcl;Lakw$b;I)V
      intermediary method_8752 Lnet/minecraft/class_1755;method_8752(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_1755$class_2184;I)V
      named method_8752 Lnet/minecraft/block/DoublePlantBlock;method_8752(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/DoublePlantBlock$DoublePlantType;I)V
    • onPlaced

      public void onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack)
      Runs when the block is placed by an entity
      Overrides:
      onPlaced in class Block
      Parameters:
      world - The world that the block is in
      pos - The block's position
      state - The block's BlockState
      placer - The entity who placed the block
      itemStack - ItemStack instance
      Mappings:
      Namespace Name Mixin selector
      official a Lajt;a(Laht;Lcl;Lard;Lsa;Ladq;)V
      intermediary method_419 Lnet/minecraft/class_197;method_419(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;Lnet/minecraft/class_1699;Lnet/minecraft/class_1071;)V
      named onPlaced Lnet/minecraft/block/Block;onPlaced(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/entity/LivingEntity;Lnet/minecraft/item/ItemStack;)V
    • method_8651

      public void method_8651(World world, PlayerEntity player, BlockPos pos, BlockState state, @Nullable BlockEntity blockEntity, @Nullable ItemStack stack)
      Overrides:
      method_8651 in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lajt;a(Laht;Lzj;Lcl;Lard;Lapv;Ladq;)V
      intermediary method_8651 Lnet/minecraft/class_197;method_8651(Lnet/minecraft/class_1150;Lnet/minecraft/class_988;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;Lnet/minecraft/class_226;Lnet/minecraft/class_1071;)V
      named method_8651 Lnet/minecraft/block/Block;method_8651(Lnet/minecraft/world/World;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/block/entity/BlockEntity;Lnet/minecraft/item/ItemStack;)V
    • onBreakByPlayer

      public void onBreakByPlayer(World world, BlockPos pos, BlockState state, PlayerEntity player)
      Runs when the block is broken by a player.
      Overrides:
      onBreakByPlayer in class Block
      Parameters:
      world - The world that the block is placed in
      pos - The block's position
      state - The block's BlockState
      player - The player who broke the block
      Mappings:
      Namespace Name Mixin selector
      official a Lajt;a(Laht;Lcl;Lard;Lzj;)V
      intermediary method_8644 Lnet/minecraft/class_197;method_8644(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;Lnet/minecraft/class_988;)V
      named onBreakByPlayer Lnet/minecraft/block/Block;onBreakByPlayer(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/entity/player/PlayerEntity;)V
    • method_8753

      private boolean method_8753(World world, BlockPos blockPos, BlockState blockState, PlayerEntity playerEntity)
      Mappings:
      Namespace Name Mixin selector
      official b Lakw;b(Laht;Lcl;Lard;Lzj;)Z
      intermediary method_8753 Lnet/minecraft/class_1755;method_8753(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;Lnet/minecraft/class_988;)Z
      named method_8753 Lnet/minecraft/block/DoublePlantBlock;method_8753(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/entity/player/PlayerEntity;)Z
    • 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
    • method_8640

      public ItemStack method_8640(World world, BlockPos blockPos, BlockState blockState)
      Overrides:
      method_8640 in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lajt;a(Laht;Lcl;Lard;)Ladq;
      intermediary method_8640 Lnet/minecraft/class_197;method_8640(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)Lnet/minecraft/class_1071;
      named method_8640 Lnet/minecraft/block/Block;method_8640(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Lnet/minecraft/item/ItemStack;
    • canGrow

      public boolean canGrow(World world, BlockPos pos, BlockState state, boolean bl)
      Specified by:
      canGrow in interface Growable
      Mappings:
      Namespace Name Mixin selector
      official a Lajv;a(Laht;Lcl;Lard;Z)Z
      intermediary method_6460 Lnet/minecraft/class_1753;method_6460(Lnet/minecraft/class_1150;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;Z)Z
      named canGrow Lnet/minecraft/block/Growable;canGrow(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Z)Z
    • canBeFertilized

      public boolean canBeFertilized(World world, Random random, BlockPos pos, BlockState state)
      Specified by:
      canBeFertilized in interface Growable
      Mappings:
      Namespace Name Mixin selector
      official a Lajv;a(Laht;Ljava/util/Random;Lcl;Lard;)Z
      intermediary method_6461 Lnet/minecraft/class_1753;method_6461(Lnet/minecraft/class_1150;Ljava/util/Random;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)Z
      named canBeFertilized Lnet/minecraft/block/Growable;canBeFertilized(Lnet/minecraft/world/World;Ljava/util/Random;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Z
    • grow

      public void grow(World world, Random random, BlockPos pos, BlockState state)
      Specified by:
      grow in interface Growable
      Mappings:
      Namespace Name Mixin selector
      official b Lajv;b(Laht;Ljava/util/Random;Lcl;Lard;)V
      intermediary method_6462 Lnet/minecraft/class_1753;method_6462(Lnet/minecraft/class_1150;Ljava/util/Random;Lnet/minecraft/class_2552;Lnet/minecraft/class_2232;)V
      named grow Lnet/minecraft/block/Growable;grow(Lnet/minecraft/world/World;Ljava/util/Random;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)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;
    • getBlockState

      public BlockState getBlockState(BlockState state, BlockView view, BlockPos pos)
      Returns the current block's blockstate at a certain position
      Overrides:
      getBlockState in class Block
      Parameters:
      state - The original blockstate
      view - BlockView instance
      pos - The block's position
      Returns:
      state
      Mappings:
      Namespace Name Mixin selector
      official b Lajt;b(Lard;Lahx;Lcl;)Lard;
      intermediary method_8656 Lnet/minecraft/class_197;method_8656(Lnet/minecraft/class_2232;Lnet/minecraft/class_1158;Lnet/minecraft/class_2552;)Lnet/minecraft/class_2232;
      named getBlockState Lnet/minecraft/block/Block;getBlockState(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
    • 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;