net.minecraft.block

public class SnifferEggBlock

extends Block

All mapped superinterfaces:

ToggleableFeature, ItemConvertible

net.minecraft.world.level.block.SnifferEggBlock
net.minecraft.world.level.block.SnifferEggBlock
net.minecraft.class_8238
net.minecraft.block.SnifferEggBlock

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<SnifferEggBlock>
CODEC
CODEC
field_46450
CODEC
public static final int
MAX_HATCH_LEVEL
MAX_HATCH_LEVEL
field_43249
FINAL_HATCH_STAGE
public static final IntProperty
HATCH
HATCH
field_43250
HATCH
private static final int
REGULAR_HATCH_TIME_TICKS
REGULAR_HATCH_TIME_TICKS
field_43251
HATCHING_TIME
private static final int
BOOSTED_HATCH_TIME_TICKS
BOOSTED_HATCH_TIME_TICKS
field_43252
BOOSTED_HATCHING_TIME
private static final int
RANDOM_HATCH_OFFSET_TICKS
RANDOM_HATCH_OFFSET_TICKS
field_43253
MAX_RANDOM_CRACK_TIME_OFFSET
private static final VoxelShape
SHAPE
SHAPE
field_43254
SHAPE

Constructor summary

ModifierConstructor
public (AbstractBlock$Settings properties)

Method summary

Modifier and TypeMethod
public com.mojang.serialization.MapCodec<SnifferEggBlock>
codec()
codec()
method_53969()
getCodec()
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 VoxelShape
getShape(BlockState state, BlockGetter level, BlockPos pos, CollisionContext context)
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)
public int
getHatchLevel(BlockState state)
getHatchLevel(BlockState state)
method_49827(class_2680 arg0)
getHatchStage(BlockState state)
private boolean
isReadyToHatch(BlockState state)
isReadyToHatch(BlockState state)
method_49828(class_2680 arg0)
isReadyToHatch(BlockState state)
public void
tick(BlockState state, ServerLevel level, BlockPos position, RandomSource random)
tick(BlockState state, ServerLevel level, BlockPos position, 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)
public void
onPlace(BlockState state, Level level, BlockPos pos, BlockState oldState, boolean movedByPiston)
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)
public boolean
isPathfindable(BlockState state, PathComputationType type)
isPathfindable(BlockState state, PathComputationType type)
method_9516(class_2680 arg0, class_10 arg1)
canPathfindThrough(BlockState arg0, NavigationType arg1)
public static boolean
hatchBoost(BlockGetter level, BlockPos pos)
hatchBoost(BlockGetter level, BlockPos pos)
method_49826(class_1922 arg0, class_2338 arg1)
isAboveHatchBooster(BlockView world, BlockPos pos)