net.minecraft.world.level

public class LocalMobCapCalculator

chh
net.minecraft.world.level.LocalMobCapCalculator
net.minecraft.class_6540
net.minecraft.world.SpawnDensityCapper
net.minecraft.src.C_182852_
net.minecraft.world.level.LocalMobCapCalculator

Field summary

Modifier and TypeField
private final it.unimi.dsi.fastutil.longs.Long2ObjectMap<List<ServerPlayer>>
a
playersNearChunk
field_34455
chunkPosToMobSpawnablePlayers
f_186497_
private final Map<ServerPlayer, LocalMobCapCalculator$MobCounts>
b
playerMobCounts
field_34456
playersToDensityCap
f_186498_
private final ChunkMap
c
chunkMap
field_34457
threadedAnvilChunkStorage
f_186499_

Constructor summary

ModifierConstructor
public (ChunkMap threadedAnvilChunkStorage)

Method summary

Modifier and TypeMethod
private List<ServerPlayer>
a(cge arg0)
getPlayersNear(ChunkPos arg0)
method_38085(class_1923 arg0)
getMobSpawnablePlayers(ChunkPos chunkPos)
m_186507_(C_1560_ arg0)
public void
a(cge arg0, bcf arg1)
addMob(ChunkPos arg0, MobCategory arg1)
method_38087(class_1923 arg0, class_1311 arg1)
increaseDensity(ChunkPos chunkPos, SpawnGroup spawnGroup)
m_186512_(C_1560_ p_186514_, C_528_ arg1)
public boolean
a(bcf arg0, cge arg1)
canSpawn(MobCategory arg0, ChunkPos arg1)
method_38084(class_1311 arg0, class_1923 arg1)
canSpawn(SpawnGroup spawnGroup, ChunkPos chunkPos)
m_186504_(C_528_ p_186506_, C_1560_ arg1)