Package net.minecraft.world
Class MobSpawnerLogic
java.lang.Object
net.minecraft.world.MobSpawnerLogic
public abstract class MobSpawnerLogic extends Object
-
Field Summary
Fields Modifier and Type Field Description private Random
field_27080
private double
field_9159
private double
field_9161
private static Logger
LOGGER
private int
maxNearbyEntities
private int
maxSpawnDelay
private int
minSpawnDelay
private Entity
renderedEntity
private int
requiredPlayerRange
private int
spawnCount
private int
spawnDelay
private MobSpawnerEntry
spawnEntry
private List<MobSpawnerEntry>
spawnPotentials
private int
spawnRange
-
Constructor Summary
Constructors Constructor Description MobSpawnerLogic()
-
Method Summary
Modifier and Type Method Description void
fromTag(World world, BlockPos blockPos, CompoundTag compoundTag)
private Identifier
getEntityId(World world, BlockPos blockPos)
Entity
getRenderedEntity(World world)
private boolean
isPlayerInRange(World world, BlockPos blockPos)
void
method_31588(ServerWorld serverWorld, BlockPos blockPos)
void
method_31589(World world, BlockPos blockPos)
boolean
method_8275(World world, int int2)
double
method_8278()
double
method_8279()
abstract void
sendStatus(World world, BlockPos blockPos, int int2)
void
setEntityId(EntityType<?> type)
void
setSpawnEntry(World world, BlockPos blockPos, MobSpawnerEntry mobSpawnerEntry)
CompoundTag
toTag(World world, BlockPos blockPos, CompoundTag compoundTag)
private void
updateSpawns(World world, BlockPos blockPos)
-
Field Details
-
LOGGER
-
spawnDelay
private int spawnDelay -
spawnPotentials
-
spawnEntry
-
field_9161
private double field_9161 -
field_9159
private double field_9159 -
minSpawnDelay
private int minSpawnDelay -
maxSpawnDelay
private int maxSpawnDelay -
spawnCount
private int spawnCount -
renderedEntity
-
maxNearbyEntities
private int maxNearbyEntities -
requiredPlayerRange
private int requiredPlayerRange -
spawnRange
private int spawnRange -
field_27080
-
-
Constructor Details
-
MobSpawnerLogic
public MobSpawnerLogic()
-
-
Method Details
-
getEntityId
-
setEntityId
-
isPlayerInRange
-
method_31589
-
method_31588
-
updateSpawns
-
fromTag
-
toTag
-
getRenderedEntity
-
method_8275
-
setSpawnEntry
public void setSpawnEntry(@Nullable World world, BlockPos blockPos, MobSpawnerEntry mobSpawnerEntry) -
sendStatus
-
method_8278
@Environment(CLIENT) public double method_8278() -
method_8279
@Environment(CLIENT) public double method_8279()
-