net.minecraft.block.spawner

public abstract class MobSpawnerLogic

net.minecraft.world.level.BaseSpawner
net.minecraft.class_1917
net.minecraft.block.spawner.MobSpawnerLogic

Field summary

Modifier and TypeField
private static final org.slf4j.Logger
LOGGER
field_60369
LOGGER
public static final String
SPAWN_DATA_TAG
field_40877
SPAWN_DATA_KEY
private static final int
EVENT_SPAWN
field_30951
field_30951
private static final int
DEFAULT_SPAWN_DELAY
field_57757
field_57757
private static final int
DEFAULT_MIN_SPAWN_DELAY
field_57758
DEFAULT_MIN_SPAWN_DELAY
private static final int
DEFAULT_MAX_SPAWN_DELAY
field_57759
DEFAULT_MAX_SPAWN_DELAY
private static final int
DEFAULT_SPAWN_COUNT
field_57760
DEFAULT_SPAWN_COUNT
private static final int
DEFAULT_MAX_NEARBY_ENTITIES
field_57761
DEFAULT_MAX_NEARBY_ENTITIES
private static final int
DEFAULT_REQUIRED_PLAYER_RANGE
field_57762
DEFAULT_REQUIRED_PLAYER_RANGE
private static final int
DEFAULT_SPAWN_RANGE
field_57763
DEFAULT_SPAWN_RANGE
private int
spawnDelay
field_9154
spawnDelay
private Pool<MobSpawnerEntry>
spawnPotentials
field_9152
spawnPotentials
private MobSpawnerEntry
nextSpawnData
field_9155
spawnEntry
private double
spin
field_9161
rotation
private double
oSpin
field_9159
lastRotation
private int
minSpawnDelay
field_9151
minSpawnDelay
private int
maxSpawnDelay
field_9150
maxSpawnDelay
private int
spawnCount
field_9149
spawnCount
private Entity
displayEntity
field_9153
renderedEntity
private int
maxNearbyEntities
field_9160
maxNearbyEntities
private int
requiredPlayerRange
field_9158
requiredPlayerRange
private int
spawnRange
field_9157
spawnRange

Constructor summary

ModifierConstructor
public ()

Method summary

Modifier and TypeMethod
public void
setEntityId(EntityType<?> type, Level level, RandomSource random, BlockPos pos)
method_8274(class_1299<?> arg0, class_1937 arg1, class_5819 arg2, class_2338 arg3)
setEntityId(EntityType<?> type, World world, Random random, BlockPos pos)
private boolean
isNearPlayer(Level level, BlockPos pos)
method_8284(class_1937 arg0, class_2338 arg1)
isPlayerInRange(World world, BlockPos pos)
public void
clientTick(Level level, BlockPos pos)
method_31589(class_1937 arg0, class_2338 arg1)
clientTick(World world, BlockPos pos)
public void
serverTick(ServerLevel level, BlockPos pos)
method_31588(class_3218 arg0, class_2338 arg1)
serverTick(ServerWorld world, BlockPos pos)
private void
delay(Level level, BlockPos pos)
method_8282(class_1937 arg0, class_2338 arg1)
updateSpawns(World world, BlockPos pos)
public void
load(Level level, BlockPos pos, ValueInput input)
method_8280(class_1937 arg0, class_2338 arg1, class_11368 arg2)
readData(World world, BlockPos pos, ReadView view)
public void
save(ValueOutput output)
method_8272(class_11372 arg0)
writeData(WriteView view)
public Entity
getOrCreateDisplayEntity(Level level, BlockPos pos)
method_8283(class_1937 arg0, class_2338 arg1)
getRenderedEntity(World world, BlockPos pos)
public boolean
onEventTriggered(Level level, int id)
method_8275(class_1937 arg0, int arg1)
handleStatus(World world, int status)
protected void
setNextSpawnData(Level level, BlockPos pos, SpawnData nextSpawnData)
method_8277(class_1937 arg0, class_2338 arg1, class_1952 arg2)
setSpawnEntry(World world, BlockPos pos, MobSpawnerEntry spawnEntry)
private MobSpawnerEntry
getOrCreateNextSpawnData(Level level, RandomSource random, BlockPos pos)
method_46404(class_1937 arg0, class_5819 arg1, class_2338 arg2)
getSpawnEntry(World world, Random random, BlockPos pos)
public abstract void
broadcastEvent(Level level, BlockPos pos, int id)
method_8273(class_1937 arg0, class_2338 arg1, int arg2)
sendStatus(World world, BlockPos pos, int status)
public double
getSpin()
method_8278()
getRotation()
public double
getOSpin()
method_8279()
getLastRotation()
private Pool
lambda$load$1()
method_67391()
method_67391()
private void
lambda$load$0(Level arg0, BlockPos arg1, SpawnData arg2)
method_67390(class_1937 arg0, class_2338 arg1, class_1952 arg2)
method_67390(World arg0, BlockPos arg1, MobSpawnerEntry arg2)
private void
lambda$delay$0(Level arg0, BlockPos arg1, SpawnData arg2)
method_33356(class_1937 arg0, class_2338 arg1, class_1952 arg2)
method_33356(World arg0, BlockPos arg1, MobSpawnerEntry spawnPotential)
private static Entity
lambda$serverTick$1(Vec3 arg0, Entity arg1)
method_18085(class_243 arg0, class_1297 arg1)
method_18085(Vec3d arg0, Entity arg1)
private Vec3d
lambda$serverTick$0(BlockPos arg0, RandomSource arg1)
method_67676(class_2338 arg0, class_5819 arg1)
method_67676(BlockPos arg0, Random arg1)