net.minecraft.block

public class FrogspawnBlock

extends Block

All mapped superinterfaces:

ToggleableFeature, ItemConvertible

net.minecraft.world.level.block.FrogspawnBlock
net.minecraft.world.level.block.FrogspawnBlock
net.minecraft.class_7113
net.minecraft.block.FrogspawnBlock

Field summary

Modifier and TypeField
public static final com.mojang.serialization.MapCodec<FrogspawnBlock>
CODEC
CODEC
field_46357
CODEC
private static final int
MIN_TADPOLES_SPAWN
MIN_TADPOLES_SPAWN
field_37579
MIN_TADPOLES
private static final int
MAX_TADPOLES_SPAWN
MAX_TADPOLES_SPAWN
field_37580
MAX_TADPOLES
private static final int
DEFAULT_MIN_HATCH_TICK_DELAY
DEFAULT_MIN_HATCH_TICK_DELAY
field_37581
MIN_HATCH_TIME
private static final int
DEFAULT_MAX_HATCH_TICK_DELAY
DEFAULT_MAX_HATCH_TICK_DELAY
field_37582
MAX_HATCH_TIME
private static final VoxelShape
SHAPE
SHAPE
field_37578
SHAPE
private static int
minHatchTickDelay
minHatchTickDelay
field_37583
minHatchTime
private static int
maxHatchTickDelay
maxHatchTickDelay
field_37584
maxHatchTime

Constructor summary

ModifierConstructor
public (AbstractBlock$Settings properties)

Method summary

Modifier and TypeMethod
public com.mojang.serialization.MapCodec<FrogspawnBlock>
codec()
codec()
method_53969()
getCodec()
protected 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)
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
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)
private static int
getFrogspawnHatchDelay(RandomSource random)
getFrogspawnHatchDelay(RandomSource random)
method_41429(class_5819 arg0)
getHatchTime(Random random)
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 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 void
entityInside(BlockState state, Level level, BlockPos pos, Entity entity, InsideBlockEffectApplier effectApplier, boolean isPrecise)
entityInside(BlockState state, Level level, BlockPos pos, Entity entity, InsideBlockEffectApplier effectApplier, boolean isPrecise)
method_9548(class_2680 arg0, class_1937 arg1, class_2338 arg2, class_1297 arg3, class_10774 arg4, boolean arg5)
onEntityCollision(BlockState arg0, World arg1, BlockPos arg2, Entity arg3, EntityCollisionHandler arg4, boolean arg5)
private static boolean
mayPlaceOn(BlockGetter level, BlockPos pos)
mayPlaceOn(BlockGetter level, BlockPos pos)
method_41427(class_1922 arg0, class_2338 arg1)
canLayAt(BlockView world, BlockPos pos)
private void
hatchFrogspawn(ServerLevel level, BlockPos pos, RandomSource random)
hatchFrogspawn(ServerLevel level, BlockPos pos, RandomSource random)
method_41426(class_3218 arg0, class_2338 arg1, class_5819 arg2)
hatch(ServerWorld world, BlockPos pos, Random random)
private void
destroyBlock(Level level, BlockPos pos)
destroyBlock(Level level, BlockPos pos)
method_41428(class_1937 arg0, class_2338 arg1)
breakWithoutDrop(World world, BlockPos pos)
private void
spawnTadpoles(ServerLevel level, BlockPos pos, RandomSource random)
spawnTadpoles(ServerLevel level, BlockPos pos, RandomSource random)
method_41430(class_3218 arg0, class_2338 arg1, class_5819 arg2)
spawnTadpoles(ServerWorld world, BlockPos pos, Random random)
private double
getRandomTadpolePositionOffset(RandomSource random)
getRandomTadpolePositionOffset(RandomSource random)
method_44015(class_5819 arg0)
getSpawnOffset(Random random)
public static void
setHatchDelay(int minDelay, int maxDelay)
setHatchDelay(int minDelay, int maxDelay)
method_41425(int arg0, int arg1)
setHatchTimeRange(int min, int max)
public static void
setDefaultHatchDelay()
setDefaultHatchDelay()
method_41431()
resetHatchTimeRange()