net.minecraft.block

public class TurtleEggBlock

extends Block

All mapped superinterfaces:

ToggleableFeature, ItemConvertible

net.minecraft.world.level.block.TurtleEggBlock
net.minecraft.class_2542
net.minecraft.block.TurtleEggBlock

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<TurtleEggBlock>
CODEC
field_46482
CODEC
public static final IntProperty
HATCH
field_11711
HATCH
public static final IntProperty
EGGS
field_11710
EGGS
public static final int
MAX_HATCH_LEVEL
field_31272
field_31272
public static final int
MIN_EGGS
field_31273
field_31273
public static final int
MAX_EGGS
field_31274
field_31274
private static final VoxelShape
SHAPE_SINGLE
field_55809
SINGLE_SHAPE
private static final VoxelShape
SHAPE_MULTIPLE
field_55810
MULTIPLE_SHAPE

Constructor summary

ModifierConstructor
public (AbstractBlock$Settings properties)

Method summary

Modifier and TypeMethod
public com.mojang.serialization.MapCodec<TurtleEggBlock>
codec()
method_53969()
getCodec()
public void
stepOn(Level level, BlockPos pos, BlockState onState, Entity entity)
method_9591(class_1937 arg0, class_2338 arg1, class_2680 arg2, class_1297 arg3)
onSteppedOn(World arg0, BlockPos arg1, BlockState arg2, Entity arg3)
public void
fallOn(Level level, BlockState state, BlockPos pos, Entity entity, double fallDistance)
method_9554(class_1937 arg0, class_2680 arg1, class_2338 arg2, class_1297 arg3, double arg4)
onLandedUpon(World arg0, BlockState arg1, BlockPos arg2, Entity arg3, double arg4)
private void
destroyEgg(Level level, BlockState state, BlockPos pos, Entity entity, int randomness)
method_10834(class_1937 arg0, class_2680 arg1, class_2338 arg2, class_1297 arg3, int arg4)
tryBreakEgg(World world, BlockState state, BlockPos pos, Entity entity, int inverseChance)
private void
decreaseEggs(Level level, BlockPos pos, BlockState state)
method_10833(class_1937 arg0, class_2338 arg1, class_2680 arg2)
breakEgg(World world, BlockPos pos, BlockState state)
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)
public static boolean
onSand(BlockGetter level, BlockPos pos)
method_10831(class_1922 arg0, class_2338 arg1)
isSandBelow(BlockView world, BlockPos pos)
public static boolean
isSand(BlockGetter level, BlockPos pos)
method_29952(class_1922 arg0, class_2338 arg1)
isSand(BlockView world, BlockPos pos)
protected void
onPlace(BlockState state, Level level, BlockPos pos, BlockState oldState, boolean movedByPiston)
method_9615(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_2680 arg3, boolean arg4)
onBlockAdded(BlockState arg0, World arg1, BlockPos arg2, BlockState arg3, boolean arg4)
private boolean
shouldUpdateHatchLevel(Level level, BlockPos pos)
method_10832(class_1937 arg0, class_2338 arg1)
shouldHatchProgress(World world, BlockPos pos)
public void
playerDestroy(Level level, Player player, BlockPos pos, BlockState state, BlockEntity blockEntity, ItemStack destroyedWith)
method_9556(class_1937 arg0, class_1657 arg1, class_2338 arg2, class_2680 arg3, class_2586 arg4, class_1799 arg5)
afterBreak(World arg0, PlayerEntity arg1, BlockPos arg2, BlockState arg3, BlockEntity arg4, ItemStack arg5)
protected boolean
canBeReplaced(BlockState state, BlockPlaceContext context)
method_9616(class_2680 arg0, class_1750 arg1)
canReplace(BlockState arg0, ItemPlacementContext arg1)
public BlockState
getStateForPlacement(BlockPlaceContext context)
method_9605(class_1750 arg0)
getPlacementState(ItemPlacementContext 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 void
createBlockStateDefinition(StateDefinition$Builder<Block, BlockState> builder)
method_9515(class_2689$class_2690<class_2248, class_2680> arg0)
appendProperties(StateManager$Builder<Block, BlockState> arg0)
private boolean
canDestroyEgg(ServerLevel level, Entity entity)
method_10835(class_3218 arg0, class_1297 arg1)
breaksEgg(ServerWorld world, Entity entity)