net.minecraft.block

public class ChorusFlowerBlock

extends Block

All mapped superinterfaces:

ToggleableFeature, ItemConvertible

net.minecraft.world.level.block.ChorusFlowerBlock
net.minecraft.world.level.block.ChorusFlowerBlock
net.minecraft.class_2279
net.minecraft.block.ChorusFlowerBlock

Field summary

Modifier and TypeField
public static final int
DEAD_AGE
DEAD_AGE
field_31060
MAX_AGE
public static final IntProperty
AGE
AGE
field_10762
AGE
private static final VoxelShape
SHAPE_BLOCK_SUPPORT
SHAPE_BLOCK_SUPPORT
field_45145
SHAPE
private final Block
plant
plant
field_10763
plantBlock

Constructor summary

ModifierConstructor
protected (Block plantBlock, AbstractBlock$Settings settings)

Method summary

Modifier and TypeMethod
protected void
tick(BlockState state, ServerLevel level, BlockPos pos, RandomSource random)
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)
isRandomlyTicking(BlockState state)
method_9542(class_2680 arg0)
hasRandomTicks(BlockState arg0)
public VoxelShape
getBlockSupportShape(BlockState state, BlockGetter level, BlockPos pos)
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 void
randomTick(BlockState state, ServerLevel level, BlockPos pos, RandomSource random)
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)
private void
placeGrownFlower(Level level, BlockPos pos, int age)
placeGrownFlower(Level level, BlockPos pos, int age)
method_9745(class_1937 arg0, class_2338 arg1, int arg2)
grow(World world, BlockPos pos, int age)
private void
placeDeadFlower(Level level, BlockPos pos)
placeDeadFlower(Level level, BlockPos pos)
method_9747(class_1937 arg0, class_2338 arg1)
die(World world, BlockPos pos)
private static boolean
allNeighborsEmpty(LevelReader level, BlockPos pos, Direction ignore)
allNeighborsEmpty(LevelReader level, BlockPos pos, Direction ignore)
method_9746(class_4538 arg0, class_2338 arg1, class_2350 arg2)
isSurroundedByAir(WorldView world, BlockPos pos, Direction exceptDirection)
protected BlockState
updateShape(BlockState state, LevelReader level, ScheduledTickAccess ticks, BlockPos pos, Direction directionToNeighbour, BlockPos neighbourPos, BlockState neighbourState, RandomSource random)
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)
protected boolean
canSurvive(BlockState state, LevelReader level, BlockPos pos)
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 void
createBlockStateDefinition(StateDefinition$Builder<Block, BlockState> builder)
createBlockStateDefinition(StateDefinition$Builder<Block, BlockState> builder)
method_9515(class_2689$class_2690<class_2248, class_2680> arg0)
appendProperties(StateManager$Builder<Block, BlockState> arg0)
public static void
generatePlant(LevelAccessor level, BlockPos target, RandomSource random, int maxHorizontalSpread)
generatePlant(LevelAccessor level, BlockPos target, RandomSource random, int maxHorizontalSpread)
method_9744(class_1936 arg0, class_2338 arg1, class_5819 arg2, int arg3)
generate(WorldAccess world, BlockPos pos, Random random, int size)
private static void
growTreeRecursive(LevelAccessor level, BlockPos current, RandomSource random, BlockPos startPos, int maxHorizontalSpread, int depth)
growTreeRecursive(LevelAccessor level, BlockPos current, RandomSource random, BlockPos startPos, int maxHorizontalSpread, int depth)
method_9748(class_1936 arg0, class_2338 arg1, class_5819 arg2, class_2338 arg3, int arg4, int arg5)
generate(WorldAccess world, BlockPos pos, Random random, BlockPos rootPos, int size, int layer)
protected void
onProjectileHit(Level level, BlockState state, BlockHitResult blockHit, Projectile projectile)
onProjectileHit(Level level, BlockState state, BlockHitResult blockHit, Projectile projectile)
method_19286(class_1937 arg0, class_2680 arg1, class_3965 arg2, class_1676 arg3)
onProjectileHit(World arg0, BlockState arg1, BlockHitResult arg2, ProjectileEntity arg3)