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 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(CompoundTag tag)private IdentifiergetEntityId()abstract BlockPosgetPos()EntitygetRenderedEntity()abstract WorldgetWorld()private booleanisPlayerInRange()booleanmethod_8275(int int2)doublemethod_8278()doublemethod_8279()abstract voidsendStatus(int status)voidsetEntityId(EntityType<?> type)voidsetSpawnEntry(MobSpawnerEntry spawnEntry)CompoundTagtoTag(CompoundTag tag)voidupdate()private voidupdateSpawns()
-
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
-
-
Constructor Details
-
MobSpawnerLogic
public MobSpawnerLogic()
-
-
Method Details
-
getEntityId
-
setEntityId
-
isPlayerInRange
private boolean isPlayerInRange() -
update
public void update() -
updateSpawns
private void updateSpawns() -
fromTag
-
toTag
-
getRenderedEntity
-
method_8275
public boolean method_8275(int int2) -
setSpawnEntry
-
sendStatus
public abstract void sendStatus(int status) -
getWorld
-
getPos
-
method_8278
@Environment(CLIENT) public double method_8278() -
method_8279
@Environment(CLIENT) public double method_8279()
-