Package net.minecraft.world.spawner
Class WorldEntitySpawner.EntityDensityManager
- java.lang.Object
-
- net.minecraft.world.spawner.WorldEntitySpawner.EntityDensityManager
-
- Enclosing class:
- WorldEntitySpawner
public static class WorldEntitySpawner.EntityDensityManager extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private double
lastCharge
private BlockPos
lastCheckedPos
private EntityType<?>
lastCheckedType
private it.unimi.dsi.fastutil.objects.Object2IntOpenHashMap<EntityClassification>
mobCategoryCounts
private int
spawnableChunkCount
private MobDensityTracker
spawnPotential
private it.unimi.dsi.fastutil.objects.Object2IntMap<EntityClassification>
unmodifiableMobCategoryCounts
-
Constructor Summary
Constructors Modifier Constructor Description private
EntityDensityManager(int p_i231621_1_, it.unimi.dsi.fastutil.objects.Object2IntOpenHashMap<EntityClassification> p_i231621_2_, MobDensityTracker p_i231621_3_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
afterSpawn(MobEntity p_234990_1_, IChunk p_234990_2_)
private boolean
canSpawn(EntityType<?> p_234989_1_, BlockPos p_234989_2_, IChunk p_234989_3_)
private boolean
canSpawnForCategory(EntityClassification p_234991_1_)
it.unimi.dsi.fastutil.objects.Object2IntMap<EntityClassification>
getMobCategoryCounts()
int
getSpawnableChunkCount()
-
-
-
Field Detail
-
spawnableChunkCount
private final int spawnableChunkCount
-
mobCategoryCounts
private final it.unimi.dsi.fastutil.objects.Object2IntOpenHashMap<EntityClassification> mobCategoryCounts
-
spawnPotential
private final MobDensityTracker spawnPotential
-
unmodifiableMobCategoryCounts
private final it.unimi.dsi.fastutil.objects.Object2IntMap<EntityClassification> unmodifiableMobCategoryCounts
-
lastCheckedPos
@Nullable private BlockPos lastCheckedPos
-
lastCheckedType
@Nullable private EntityType<?> lastCheckedType
-
lastCharge
private double lastCharge
-
-
Constructor Detail
-
EntityDensityManager
private EntityDensityManager(int p_i231621_1_, it.unimi.dsi.fastutil.objects.Object2IntOpenHashMap<EntityClassification> p_i231621_2_, MobDensityTracker p_i231621_3_)
-
-
Method Detail
-
canSpawn
private boolean canSpawn(EntityType<?> p_234989_1_, BlockPos p_234989_2_, IChunk p_234989_3_)
-
getSpawnableChunkCount
public int getSpawnableChunkCount()
-
getMobCategoryCounts
public it.unimi.dsi.fastutil.objects.Object2IntMap<EntityClassification> getMobCategoryCounts()
-
canSpawnForCategory
private boolean canSpawnForCategory(EntityClassification p_234991_1_)
-
-