Package net.minecraft.world.level
Class LocalMobCapCalculator
java.lang.Object
net.minecraft.world.level.LocalMobCapCalculator
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ChunkMap
private final Map
<ServerPlayer, LocalMobCapCalculator.MobCounts> private final it.unimi.dsi.fastutil.longs.Long2ObjectMap
<List<ServerPlayer>> -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addMob
(ChunkPos p_186513_, MobCategory p_186514_) boolean
canSpawn
(MobCategory p_186505_, ChunkPos p_186506_) private List
<ServerPlayer> getPlayersNear
(ChunkPos p_186508_)
-
Field Details
-
playersNearChunk
-
playerMobCounts
-
chunkMap
-
-
Constructor Details
-
LocalMobCapCalculator
-
-
Method Details
-
getPlayersNear
-
addMob
-
canSpawn
-