Class TallPlantBlock

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

public class TallPlantBlock extends PlantBlock
Mappings:
Namespace Name
official cfo
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 Lcfo;a:Lcpt;
      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> Lcou;<init>(Lcou$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 Lcou;a(Lcov;Lgo;Lcov;Lcaw;Lgj;Lgj;)Lcov;
      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 Lcdq;a(Lbww;)Lcov;
      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 Lcdq;a(Lcav;Lgj;Lcov;Laxy;Lbuw;)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 Lcou;a(Lcov;Lcay;Lgj;)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 Lcfo;a(Lcaw;Lcov;Lgj;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 Lcfo;a(Lcay;Lgj;Lcov;)Lcov;
      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 Lcdq;a(Lcav;Lgj;Lcov;Lboj;)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 Lcdq;a(Lcav;Lboj;Lgj;Lcov;Lcmr;Lbuw;)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 Lcfo;b(Lcav;Lgj;Lcov;Lboj;)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 Lcdq;a(Lcow$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
    • getOffsetType

      public AbstractBlock.OffsetType getOffsetType()
      Overrides:
      getOffsetType in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official U_ Lcou;U_()Lcou$b;
      intermediary method_16841 Lnet/minecraft/class_4970;method_16841()Lnet/minecraft/class_4970$class_2250;
      named getOffsetType Lnet/minecraft/block/AbstractBlock;getOffsetType()Lnet/minecraft/block/AbstractBlock$OffsetType;
    • getRenderingSeed

      public long getRenderingSeed(BlockState state, BlockPos pos)
      Overrides:
      getRenderingSeed in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official a Lcou;a(Lcov;Lgj;)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