Class BambooBlock

All Implemented Interfaces:
Fertilizable, ItemConvertible

public class BambooBlock
extends Block
implements Fertilizable
Mappings:
Namespace Name
official bvy
intermediary net/minecraft/class_2211
named net/minecraft/block/BambooBlock
  • Field Details

    • SMALL_LEAVES_SHAPE

      protected static final VoxelShape SMALL_LEAVES_SHAPE
      Mappings:
      Namespace Name Mixin selector
      official a Lbvy;a:Ldjn;
      intermediary field_9912 Lnet/minecraft/class_2211;field_9912:Lnet/minecraft/class_265;
      named SMALL_LEAVES_SHAPE Lnet/minecraft/block/BambooBlock;SMALL_LEAVES_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
    • LARGE_LEAVES_SHAPE

      protected static final VoxelShape LARGE_LEAVES_SHAPE
      Mappings:
      Namespace Name Mixin selector
      official b Lbvy;b:Ldjn;
      intermediary field_9915 Lnet/minecraft/class_2211;field_9915:Lnet/minecraft/class_265;
      named LARGE_LEAVES_SHAPE Lnet/minecraft/block/BambooBlock;LARGE_LEAVES_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
    • NO_LEAVES_SHAPE

      protected static final VoxelShape NO_LEAVES_SHAPE
      Mappings:
      Namespace Name Mixin selector
      official c Lbvy;c:Ldjn;
      intermediary field_9913 Lnet/minecraft/class_2211;field_9913:Lnet/minecraft/class_265;
      named NO_LEAVES_SHAPE Lnet/minecraft/block/BambooBlock;NO_LEAVES_SHAPE:Lnet/minecraft/util/shape/VoxelShape;
    • AGE

      public static final IntProperty AGE
      Mappings:
      Namespace Name Mixin selector
      official d Lbvy;d:Lcit;
      intermediary field_9914 Lnet/minecraft/class_2211;field_9914:Lnet/minecraft/class_2758;
      named AGE Lnet/minecraft/block/BambooBlock;AGE:Lnet/minecraft/state/property/IntProperty;
    • LEAVES

      public static final EnumProperty<BambooLeaves> LEAVES
      Mappings:
      Namespace Name Mixin selector
      official e Lbvy;e:Lcir;
      intermediary field_9917 Lnet/minecraft/class_2211;field_9917:Lnet/minecraft/class_2754;
      named LEAVES Lnet/minecraft/block/BambooBlock;LEAVES:Lnet/minecraft/state/property/EnumProperty;
    • STAGE

      public static final IntProperty STAGE
      Mappings:
      Namespace Name Mixin selector
      official f Lbvy;f:Lcit;
      intermediary field_9916 Lnet/minecraft/class_2211;field_9916:Lnet/minecraft/class_2758;
      named STAGE Lnet/minecraft/block/BambooBlock;STAGE:Lnet/minecraft/state/property/IntProperty;
  • Constructor Details

    • BambooBlock

      public BambooBlock​(AbstractBlock.Settings settings)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lchs;<init>(Lchs$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

    • appendProperties

      protected void appendProperties​(StateManager.Builder<Block,​BlockState> builder)
      Overrides:
      appendProperties in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lbwu;a(Lchu$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 aj_ Lchs;aj_()Lchs$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;
    • isTranslucent

      public boolean isTranslucent​(BlockState state, BlockView world, BlockPos pos)
      Overrides:
      isTranslucent in class Block
      Mappings:
      Namespace Name Mixin selector
      official c Lbwu;c(Lcht;Lbsz;Lfx;)Z
      intermediary method_9579 Lnet/minecraft/class_2248;method_9579(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;)Z
      named isTranslucent Lnet/minecraft/block/Block;isTranslucent(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)Z
    • getOutlineShape

      public VoxelShape getOutlineShape​(BlockState state, BlockView world, BlockPos pos, ShapeContext context)
      Overrides:
      getOutlineShape in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official a Lchs;a(Lcht;Lbsz;Lfx;Ldiz;)Ldjn;
      intermediary method_9530 Lnet/minecraft/class_4970;method_9530(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_3726;)Lnet/minecraft/class_265;
      named getOutlineShape Lnet/minecraft/block/AbstractBlock;getOutlineShape(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/ShapeContext;)Lnet/minecraft/util/shape/VoxelShape;
    • canPathfindThrough

      public boolean canPathfindThrough​(BlockState state, BlockView world, BlockPos pos, NavigationType type)
      Overrides:
      canPathfindThrough in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official a Lchs;a(Lcht;Lbsz;Lfx;Ldcu;)Z
      intermediary method_9516 Lnet/minecraft/class_4970;method_9516(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_10;)Z
      named canPathfindThrough Lnet/minecraft/block/AbstractBlock;canPathfindThrough(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/entity/ai/pathing/NavigationType;)Z
    • getCollisionShape

      public VoxelShape getCollisionShape​(BlockState state, BlockView world, BlockPos pos, ShapeContext context)
      Overrides:
      getCollisionShape in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official c Lchs;c(Lcht;Lbsz;Lfx;Ldiz;)Ldjn;
      intermediary method_9549 Lnet/minecraft/class_4970;method_9549(Lnet/minecraft/class_2680;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_3726;)Lnet/minecraft/class_265;
      named getCollisionShape Lnet/minecraft/block/AbstractBlock;getCollisionShape(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/ShapeContext;)Lnet/minecraft/util/shape/VoxelShape;
    • getPlacementState

      @Nullable public BlockState getPlacementState​(ItemPlacementContext ctx)
      Overrides:
      getPlacementState in class Block
      Mappings:
      Namespace Name Mixin selector
      official a Lbwu;a(Lbpv;)Lcht;
      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;
    • scheduledTick

      public void scheduledTick​(BlockState state, ServerWorld world, BlockPos pos, Random random)
      Overrides:
      scheduledTick in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official a_ Lchs;a_(Lcht;Laav;Lfx;Ljava/util/Random;)V
      intermediary method_9588 Lnet/minecraft/class_4970;method_9588(Lnet/minecraft/class_2680;Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Ljava/util/Random;)V
      named scheduledTick Lnet/minecraft/block/AbstractBlock;scheduledTick(Lnet/minecraft/block/BlockState;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Ljava/util/Random;)V
    • hasRandomTicks

      public boolean hasRandomTicks​(BlockState state)
      Overrides:
      hasRandomTicks in class Block
      Mappings:
      Namespace Name Mixin selector
      official c_ Lbwu;c_(Lcht;)Z
      intermediary method_9542 Lnet/minecraft/class_2248;method_9542(Lnet/minecraft/class_2680;)Z
      named hasRandomTicks Lnet/minecraft/block/Block;hasRandomTicks(Lnet/minecraft/block/BlockState;)Z
    • randomTick

      public void randomTick​(BlockState state, ServerWorld world, BlockPos pos, Random random)
      Overrides:
      randomTick in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official b Lchs;b(Lcht;Laav;Lfx;Ljava/util/Random;)V
      intermediary method_9514 Lnet/minecraft/class_4970;method_9514(Lnet/minecraft/class_2680;Lnet/minecraft/class_3218;Lnet/minecraft/class_2338;Ljava/util/Random;)V
      named randomTick Lnet/minecraft/block/AbstractBlock;randomTick(Lnet/minecraft/block/BlockState;Lnet/minecraft/server/world/ServerWorld;Lnet/minecraft/util/math/BlockPos;Ljava/util/Random;)V
    • canPlaceAt

      public boolean canPlaceAt​(BlockState state, WorldView world, BlockPos pos)
      Overrides:
      canPlaceAt in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official a Lchs;a(Lcht;Lbty;Lfx;)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
    • 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 AbstractBlock
      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 Lchs;a(Lcht;Lgc;Lcht;Lbtw;Lfx;Lfx;)Lcht;
      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;
    • isFertilizable

      public boolean isFertilizable​(BlockView world, BlockPos pos, BlockState state, boolean isClient)
      Specified by:
      isFertilizable in interface Fertilizable
      Mappings:
      Namespace Name Mixin selector
      official a Lbww;a(Lbsz;Lfx;Lcht;Z)Z
      intermediary method_9651 Lnet/minecraft/class_2256;method_9651(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;Z)Z
      named isFertilizable Lnet/minecraft/block/Fertilizable;isFertilizable(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;Z)Z
    • canGrow

      public boolean canGrow​(World world, Random random, BlockPos pos, BlockState state)
      Specified by:
      canGrow in interface Fertilizable
      Mappings:
      Namespace Name Mixin selector
      official a Lbww;a(Lbtv;Ljava/util/Random;Lfx;Lcht;)Z
      intermediary method_9650 Lnet/minecraft/class_2256;method_9650(Lnet/minecraft/class_1937;Ljava/util/Random;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)Z
      named canGrow Lnet/minecraft/block/Fertilizable;canGrow(Lnet/minecraft/world/World;Ljava/util/Random;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)Z
    • grow

      public void grow​(ServerWorld world, Random random, BlockPos pos, BlockState state)
      Specified by:
      grow in interface Fertilizable
      Mappings:
      Namespace Name Mixin selector
      official a Lbww;a(Laav;Ljava/util/Random;Lfx;Lcht;)V
      intermediary method_9652 Lnet/minecraft/class_2256;method_9652(Lnet/minecraft/class_3218;Ljava/util/Random;Lnet/minecraft/class_2338;Lnet/minecraft/class_2680;)V
      named grow Lnet/minecraft/block/Fertilizable;grow(Lnet/minecraft/server/world/ServerWorld;Ljava/util/Random;Lnet/minecraft/util/math/BlockPos;Lnet/minecraft/block/BlockState;)V
    • calcBlockBreakingDelta

      public float calcBlockBreakingDelta​(BlockState state, PlayerEntity player, BlockView world, BlockPos pos)
      Overrides:
      calcBlockBreakingDelta in class AbstractBlock
      Mappings:
      Namespace Name Mixin selector
      official a Lchs;a(Lcht;Lbhl;Lbsz;Lfx;)F
      intermediary method_9594 Lnet/minecraft/class_4970;method_9594(Lnet/minecraft/class_2680;Lnet/minecraft/class_1657;Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;)F
      named calcBlockBreakingDelta Lnet/minecraft/block/AbstractBlock;calcBlockBreakingDelta(Lnet/minecraft/block/BlockState;Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)F
    • updateLeaves

      protected void updateLeaves​(BlockState state, World world, BlockPos pos, Random random, int height)
      Mappings:
      Namespace Name Mixin selector
      official a Lbvy;a(Lcht;Lbtv;Lfx;Ljava/util/Random;I)V
      intermediary method_9385 Lnet/minecraft/class_2211;method_9385(Lnet/minecraft/class_2680;Lnet/minecraft/class_1937;Lnet/minecraft/class_2338;Ljava/util/Random;I)V
      named updateLeaves Lnet/minecraft/block/BambooBlock;updateLeaves(Lnet/minecraft/block/BlockState;Lnet/minecraft/world/World;Lnet/minecraft/util/math/BlockPos;Ljava/util/Random;I)V
    • countBambooAbove

      protected int countBambooAbove​(BlockView world, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official a Lbvy;a(Lbsz;Lfx;)I
      intermediary method_9387 Lnet/minecraft/class_2211;method_9387(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;)I
      named countBambooAbove Lnet/minecraft/block/BambooBlock;countBambooAbove(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)I
    • countBambooBelow

      protected int countBambooBelow​(BlockView world, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official b Lbvy;b(Lbsz;Lfx;)I
      intermediary method_9386 Lnet/minecraft/class_2211;method_9386(Lnet/minecraft/class_1922;Lnet/minecraft/class_2338;)I
      named countBambooBelow Lnet/minecraft/block/BambooBlock;countBambooBelow(Lnet/minecraft/world/BlockView;Lnet/minecraft/util/math/BlockPos;)I