Class TallPlantBlock

All Implemented Interfaces:
ItemConvertible
Direct Known Subclasses:
SmallDripleafBlock, TallFlowerBlock, TallSeagrassBlock

public class TallPlantBlock extends PlantBlock
Mappings:
Namespace Name
official cku
intermediary net/minecraft/class_2320
named net/minecraft/block/TallPlantBlock
  • Field Details

    • HALF

      public static final EnumProperty<DoubleBlockHalf> HALF
      Mappings:
      Namespace Name Mixin selector
      official a Lcku;a:Lcvp;
      intermediary field_10929 Lnet/minecraft/class_2320;field_10929:Lnet/minecraft/class_2754;
      named HALF Lnet/minecraft/block/TallPlantBlock;HALF:Lnet/minecraft/state/property/EnumProperty;
  • Constructor Details

    • TallPlantBlock

      public TallPlantBlock(AbstractBlock.Settings settings)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lcuq;<init>(Lcuq$c;)V
      intermediary <init> Lnet/minecraft/class_4970;<init>(Lnet/minecraft/class_4970$class_2251;)V
      named <init> Lnet/minecraft/block/AbstractBlock;<init>(Lnet/minecraft/block/AbstractBlock$Settings;)V
  • Method Details

    • getStateForNeighborUpdate

      public BlockState getStateForNeighborUpdate(BlockState state, Direction direction, BlockState neighborState, WorldAccess world, BlockPos pos, BlockPos neighborPos)
      Gets the possibly updated block state of this block when a neighboring block is updated.
      Overrides:
      getStateForNeighborUpdate in class PlantBlock
      Parameters:
      state - the state of this block
      direction - the direction from this block to the neighbor
      neighborState - the state of the updated neighbor block
      world - the world
      pos - the position of this block
      neighborPos - the position of the neighbor block
      Returns:
      the new state of this block
      Mappings:
      Namespace Name Mixin selector
      official a Lcuq;a(Lcur;Lgy;Lcur;Lcgb;Lgt;Lgt;)Lcur;
      intermediary method_9559 Lnet/minecraft/class_4970;method_9559(Lnet/minecraft/class_2680;Lnet/minecraft/class_2350;Lnet/minecraft/class_2680;Lnet/minecraft/class_1936;Lnet/minecraft/class_2338;Lnet/minecraft/class_2338;)Lnet/minecraft/class_2680;
      named getStateForNeighborUpdate Lnet/minecraft/block/AbstractBlock;getStateForNeighborUpdate(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/Direction;Lnet/minecraft/block/BlockState;Lnet/minecraft/world/WorldAccess;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/util/math/BlockPos;)Lnet/minecraft/block/BlockState;
    • getPlacementState

      @Nullable public @Nullable BlockState getPlacementState(ItemPlacementContext ctx)
      Overrides:
      getPlacementState in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lciw;a(Lcca;)Lcur;
      intermediary method_9605 Lnet/minecraft/class_2248;method_9605(Lnet/minecraft/class_1750;)Lnet/minecraft/class_2680;
      named getPlacementState Lnet/minecraft/block/Block;getPlacementState(Lnet/minecraft/item/ItemPlacementContext;)Lnet/minecraft/block/BlockState;
    • onPlaced

      public void onPlaced(World world, BlockPos pos, BlockState state, LivingEntity placer, ItemStack itemStack)
      Overrides:
      onPlaced in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lciw;a(Lcga;Lgt;Lcur;Lbbf;Lcaa;)V
      intermediary method_9567 Lnet/minecraft/class_2248;method_9567(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_1309;Lnet/minecraft/class_1799;)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
    • canPlaceAt

      public boolean canPlaceAt(BlockState state, WorldView world, BlockPos pos)
      Overrides:
      canPlaceAt in class PlantBlock
      Mappings:
      Namespace Name Mixin selector
      official a Lcuq;a(Lcur;Lcgd;Lgt;)Z
      intermediary method_9558 Lnet/minecraft/class_4970;method_9558(Lnet/minecraft/class_2680;Lnet/minecraft/class_4538;Lnet/minecraft/class_2338;)Z
      named canPlaceAt Lnet/minecraft/block/AbstractBlock;canPlaceAt(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;)Z
    • placeAt

      public static void placeAt(WorldAccess world, BlockState state, BlockPos pos, int flags)
      Mappings:
      Namespace Name Mixin selector
      official a Lcku;a(Lcgb;Lcur;Lgt;I)V
      intermediary method_10021 Lnet/minecraft/class_2320;method_10021(Lnet/minecraft/class_1936;Lnet/minecraft/class_2680;Lnet/minecraft/class_2338;I)V
      named placeAt Lnet/minecraft/block/TallPlantBlock;placeAt(Lnet/minecraft/world/WorldAccess;Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;I)V
    • withWaterloggedState

      public static BlockState withWaterloggedState(WorldView world, BlockPos pos, BlockState state)
      Mappings:
      Namespace Name Mixin selector
      official a Lcku;a(Lcgd;Lgt;Lcur;)Lcur;
      intermediary method_37458 Lnet/minecraft/class_2320;method_37458(Lnet/minecraft/class_4538;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Lnet/minecraft/class_2680;
      named withWaterloggedState Lnet/minecraft/block/TallPlantBlock;withWaterloggedState(Lnet/minecraft/world/WorldView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Lnet/minecraft/block/BlockState;
    • onBreak

      public void onBreak(World world, BlockPos pos, BlockState state, PlayerEntity player)
      Overrides:
      onBreak in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lciw;a(Lcga;Lgt;Lcur;Lbtf;)V
      intermediary method_9576 Lnet/minecraft/class_2248;method_9576(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_1657;)V
      named onBreak Lnet/minecraft/block/Block;onBreak(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/entity/player/PlayerEntity;)V
    • afterBreak

      public void afterBreak(World world, PlayerEntity player, BlockPos pos, BlockState state, @Nullable @Nullable BlockEntity blockEntity, ItemStack stack)
      Overrides:
      afterBreak in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lciw;a(Lcga;Lbtf;Lgt;Lcur;Lcsl;Lcaa;)V
      intermediary method_9556 Lnet/minecraft/class_2248;method_9556(Lnet/minecraft/class_1937;Lnet/minecraft/class_1657;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_2586;Lnet/minecraft/class_1799;)V
      named afterBreak Lnet/minecraft/block/Block;afterBreak(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
    • onBreakInCreative

      protected static void onBreakInCreative(World world, BlockPos pos, BlockState state, PlayerEntity player)
      Destroys a bottom half of a tall double block (such as a plant or a door) without dropping an item when broken in creative.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lcku;b(Lcga;Lgt;Lcur;Lbtf;)V
      intermediary method_30036 Lnet/minecraft/class_2320;method_30036(Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Lnet/minecraft/class_1657;)V
      named onBreakInCreative Lnet/minecraft/block/TallPlantBlock;onBreakInCreative(Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Lnet/minecraft/entity/player/PlayerEntity;)V
    • appendProperties

      protected void appendProperties(StateManager.Builder<Block,BlockState> builder)
      Overrides:
      appendProperties in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lciw;a(Lcus$a;)V
      intermediary method_9515 Lnet/minecraft/class_2248;method_9515(Lnet/minecraft/class_2689$class_2690;)V
      named appendProperties Lnet/minecraft/block/Block;appendProperties(Lnet/minecraft/state/StateManager$Builder;)V
    • getRenderingSeed

      public long getRenderingSeed(BlockState state, BlockPos pos)
      Overrides:
      getRenderingSeed in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official a Lcuq;a(Lcur;Lgt;)J
      intermediary method_9535 Lnet/minecraft/class_4970;method_9535(Lnet/minecraft/class_2680;Lnet/minecraft/class_2338;)J
      named getRenderingSeed Lnet/minecraft/block/AbstractBlock;getRenderingSeed(Lnet/minecraft/block/BlockState;Lnet/minecraft/util/math/BlockPos;)J