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 Randomfield_27080private doublefield_9159private doublefield_9161private static LoggerLOGGERprivate intmaxNearbyEntitiesprivate intmaxSpawnDelayprivate intminSpawnDelayprivate EntityrenderedEntityprivate intrequiredPlayerRangeprivate intspawnCountprivate intspawnDelayprivate MobSpawnerEntryspawnEntryprivate List<MobSpawnerEntry>spawnPotentialsprivate intspawnRange -
Constructor Summary
Constructors Constructor Description MobSpawnerLogic() -
Method Summary
Modifier and Type Method Description voidfromTag(World world, BlockPos blockPos, CompoundTag compoundTag)private IdentifiergetEntityId(World world, BlockPos blockPos)EntitygetRenderedEntity(World world)private booleanisPlayerInRange(World world, BlockPos blockPos)voidmethod_31588(ServerWorld serverWorld, BlockPos blockPos)voidmethod_31589(World world, BlockPos blockPos)booleanmethod_8275(World world, int int2)doublemethod_8278()doublemethod_8279()abstract voidsendStatus(World world, BlockPos blockPos, int int2)voidsetEntityId(EntityType<?> type)voidsetSpawnEntry(World world, BlockPos blockPos, MobSpawnerEntry mobSpawnerEntry)CompoundTagtoTag(World world, BlockPos blockPos, CompoundTag compoundTag)private voidupdateSpawns(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()
-