net.minecraft.block

public abstract class LeavesBlock

extends Block implements Waterloggable

All mapped superinterfaces:

ToggleableFeature, ItemConvertible, Waterloggable, FluidDrainable, FluidFillable

net.minecraft.world.level.block.LeavesBlock
net.minecraft.class_2397
net.minecraft.block.LeavesBlock

Field summary

Modifier and TypeField
public static final int
DECAY_DISTANCE
field_31111
MAX_DISTANCE
public static final IntProperty
DISTANCE
field_11199
DISTANCE
public static final BooleanProperty
PERSISTENT
field_11200
PERSISTENT
public static final BooleanProperty
WATERLOGGED
field_38227
WATERLOGGED
protected final float
leafParticleChance
field_55773
leafParticleChance
private static final int
TICK_DELAY
field_31112
field_31112
private static boolean
cutoutLeaves
field_64683
cutoutLeaves

Constructor summary

ModifierConstructor
public (float leafParticleChance, AbstractBlock$Settings settings)

Method summary

Modifier and TypeMethod
public abstract com.mojang.serialization.MapCodec<? extends LeavesBlock>
codec()
method_53969()
getCodec()
protected boolean
skipRendering(BlockState state, BlockState neighborState, Direction direction)
method_9522(class_2680 arg0, class_2680 arg1, class_2350 arg2)
isSideInvisible(BlockState arg0, BlockState arg1, Direction arg2)
public static void
setCutoutLeaves(boolean cutoutLeaves)
method_76771(boolean arg0)
setCutoutLeaves(boolean cutoutLeaves)
protected VoxelShape
getBlockSupportShape(BlockState state, BlockGetter level, BlockPos pos)
method_25959(class_2680 arg0, class_1922 arg1, class_2338 arg2)
getSidesShape(BlockState arg0, BlockView arg1, BlockPos arg2)
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
decaying(BlockState state)
method_42311(class_2680 arg0)
shouldDecay(BlockState state)
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 int
getLightBlock(BlockState state)
method_9505(class_2680 arg0)
getOpacity(BlockState arg0)
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)
private static BlockState
updateDistance(BlockState state, LevelAccessor level, BlockPos pos)
method_10300(class_2680 arg0, class_1936 arg1, class_2338 arg2)
updateDistanceFromLogs(BlockState state, WorldAccess world, BlockPos pos)
private static int
getDistanceAt(BlockState state)
method_10302(class_2680 arg0)
getDistanceFromLog(BlockState state)
public static OptionalInt
getOptionalDistanceAt(BlockState state)
method_49817(class_2680 arg0)
getOptionalDistanceFromLog(BlockState state)
protected FluidState
getFluidState(BlockState state)
method_9545(class_2680 arg0)
getFluidState(BlockState arg0)
public void
animateTick(BlockState state, Level level, BlockPos pos, RandomSource random)
method_9496(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_5819 arg3)
randomDisplayTick(BlockState arg0, World arg1, BlockPos arg2, Random arg3)
private static void
makeDrippingWaterParticles(Level level, BlockPos pos, RandomSource random, BlockState belowState, BlockPos below)
method_66442(class_1937 arg0, class_2338 arg1, class_5819 arg2, class_2680 arg3, class_2338 arg4)
spawnWaterParticle(World world, BlockPos pos, Random random, BlockState state, BlockPos posBelow)
private void
makeFallingLeavesParticles(Level level, BlockPos pos, RandomSource random, BlockState belowState, BlockPos below)
method_66444(class_1937 arg0, class_2338 arg1, class_5819 arg2, class_2680 arg3, class_2338 arg4)
spawnLeafParticle(World world, BlockPos pos, Random random, BlockState state, BlockPos posBelow)
protected abstract void
spawnFallingLeavesParticle(Level level, BlockPos pos, RandomSource random)
method_67234(class_1937 arg0, class_2338 arg1, class_5819 arg2)
spawnLeafParticle(World world, BlockPos pos, Random random)
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)
public BlockState
getStateForPlacement(BlockPlaceContext context)
method_9605(class_1750 arg0)
getPlacementState(ItemPlacementContext arg0)