net.minecraft.world.level

public class LocalMobCapCalculator

dhs
net.minecraft.world.level.LocalMobCapCalculator
net.minecraft.class_6540
net.minecraft.world.SpawnDensityCapper
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
private final Map<ServerPlayer, LocalMobCapCalculator$MobCounts>
b
playerMobCounts
field_34456
playersToDensityCap
private final ChunkMap
c
chunkMap
field_34457
chunkLoadingManager

Constructor summary

ModifierConstructor
public (ChunkMap chunkLoadingManager)

Method summary

Modifier and TypeMethod
private List<ServerPlayer>
a(dgo arg0)
getPlayersNear(ChunkPos arg0)
method_38085(class_1923 arg0)
getMobSpawnablePlayers(ChunkPos chunkPos)
public void
a(dgo arg0, bwj arg1)
addMob(ChunkPos arg0, MobCategory arg1)
method_38087(class_1923 arg0, class_1311 arg1)
increaseDensity(ChunkPos chunkPos, SpawnGroup spawnGroup)
public boolean
a(bwj arg0, dgo arg1)
canSpawn(MobCategory arg0, ChunkPos arg1)
method_38084(class_1311 arg0, class_1923 arg1)
canSpawn(SpawnGroup spawnGroup, ChunkPos chunkPos)