net.minecraft.block

public class BambooBlock

extends Block implements Fertilizable

All mapped superinterfaces:

ToggleableFeature, ItemConvertible, Fertilizable

net.minecraft.world.level.block.BambooStalkBlock
net.minecraft.class_2211
net.minecraft.block.BambooBlock

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<BambooBlock>
CODEC
field_46263
CODEC
private static final VoxelShape
SHAPE_SMALL
field_9912
SMALL_LEAVES_SHAPE
private static final VoxelShape
SHAPE_LARGE
field_9915
LARGE_LEAVES_SHAPE
private static final VoxelShape
SHAPE_COLLISION
field_9913
NO_LEAVES_SHAPE
public static final IntProperty
AGE
field_9914
AGE
public static final EnumProperty<BambooLeaves>
LEAVES
field_9917
LEAVES
public static final IntProperty
STAGE
field_9916
STAGE
public static final int
MAX_HEIGHT
field_31000
field_31000
public static final int
STAGE_GROWING
field_31001
field_31001
public static final int
STAGE_DONE_GROWING
field_31002
field_31002
public static final int
AGE_THIN_BAMBOO
field_31003
field_31003
public static final int
AGE_THICK_BAMBOO
field_31004
field_31004

Constructor summary

ModifierConstructor
public (AbstractBlock$Settings properties)

Method summary

Modifier and TypeMethod
public com.mojang.serialization.MapCodec<BambooBlock>
codec()
method_53969()
getCodec()
protected void
createBlockStateDefinition(StateDefinition$Builder<Block, BlockState> builder)
method_9515(class_2689$class_2690<class_2248, class_2680> arg0)
appendProperties(StateManager$Builder<Block, BlockState> arg0)
protected boolean
propagatesSkylightDown(BlockState state)
method_9579(class_2680 arg0)
isTransparent(BlockState arg0)
protected VoxelShape
getShape(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context)
method_9530(class_2680 arg0, class_1922 arg1, class_2338 arg2, class_3726 arg3)
getOutlineShape(BlockState arg0, BlockView arg1, BlockPos arg2, ShapeContext arg3)
protected boolean
isPathfindable(BlockState state, PathComputationType type)
method_9516(class_2680 arg0, class_10 arg1)
canPathfindThrough(BlockState arg0, NavigationType arg1)
protected VoxelShape
getCollisionShape(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context)
method_9549(class_2680 arg0, class_1922 arg1, class_2338 arg2, class_3726 arg3)
getCollisionShape(BlockState arg0, BlockView arg1, BlockPos arg2, ShapeContext arg3)
protected boolean
isCollisionShapeFullBlock(BlockState state, BlockGetter level, BlockPos pos)
method_37403(class_2680 arg0, class_1922 arg1, class_2338 arg2)
isShapeFullCube(BlockState arg0, BlockView arg1, BlockPos arg2)
public BlockState
getStateForPlacement(BlockPlaceContext context)
method_9605(class_1750 arg0)
getPlacementState(ItemPlacementContext arg0)
protected void
tick(BlockState state, ServerLevel level, BlockPos pos, RandomSource random)
method_9588(class_2680 arg0, class_3218 arg1, class_2338 arg2, class_5819 arg3)
scheduledTick(BlockState arg0, ServerWorld arg1, BlockPos arg2, Random arg3)
protected boolean
isRandomlyTicking(BlockState state)
method_9542(class_2680 arg0)
hasRandomTicks(BlockState arg0)
protected void
randomTick(BlockState state, ServerLevel level, BlockPos pos, RandomSource random)
method_9514(class_2680 arg0, class_3218 arg1, class_2338 arg2, class_5819 arg3)
randomTick(BlockState arg0, ServerWorld arg1, BlockPos arg2, Random arg3)
protected boolean
canSurvive(BlockState state, LevelReader level, BlockPos pos)
method_9558(class_2680 arg0, class_4538 arg1, class_2338 arg2)
canPlaceAt(BlockState arg0, WorldView arg1, BlockPos arg2)
protected BlockState
updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random)
method_9559(class_2680 arg0, class_4538 arg1, class_10225 arg2, class_2338 arg3, class_2350 arg4, class_2338 arg5, class_2680 arg6, class_5819 arg7)
getStateForNeighborUpdate(BlockState arg0, WorldView arg1, ScheduledTickView arg2, BlockPos arg3, Direction arg4, BlockPos arg5, BlockState arg6, Random arg7)
public boolean
isValidBonemealTarget(LevelReader level, BlockPos pos, BlockState state)
method_9651(class_4538 arg0, class_2338 arg1, class_2680 arg2)
isFertilizable(WorldView arg0, BlockPos arg1, BlockState arg2)
public boolean
isBonemealSuccess(Level level, RandomSource random, BlockPos pos, BlockState state)
method_9650(class_1937 arg0, class_5819 arg1, class_2338 arg2, class_2680 arg3)
canGrow(World arg0, Random arg1, BlockPos arg2, BlockState arg3)
public void
performBonemeal(ServerLevel level, RandomSource random, BlockPos pos, BlockState state)
method_9652(class_3218 arg0, class_5819 arg1, class_2338 arg2, class_2680 arg3)
grow(ServerWorld arg0, Random arg1, BlockPos arg2, BlockState arg3)
protected void
growBamboo(BlockState state, Level level, BlockPos pos, RandomSource random, int height)
method_9385(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_5819 arg3, int arg4)
updateLeaves(BlockState state, World world, BlockPos pos, Random random, int height)
protected int
getHeightAboveUpToMax(BlockGetter level, BlockPos pos)
method_9387(class_1922 arg0, class_2338 arg1)
countBambooAbove(BlockView world, BlockPos pos)
protected int
getHeightBelowUpToMax(BlockGetter level, BlockPos pos)
method_9386(class_1922 arg0, class_2338 arg1)
countBambooBelow(BlockView world, BlockPos pos)