Package net.minecraft.world.spawner
Class WorldEntitySpawner.EntityDensityManager
java.lang.Object
net.minecraft.world.spawner.WorldEntitySpawner.EntityDensityManager
- Enclosing class:
- WorldEntitySpawner
-
Field Summary
Modifier and TypeFieldDescriptionprivate double
private BlockPos
private EntityType<?>
private final it.unimi.dsi.fastutil.objects.Object2IntOpenHashMap<EntityClassification>
private final int
private final MobDensityTracker
private final it.unimi.dsi.fastutil.objects.Object2IntMap<EntityClassification>
-
Constructor Summary
ModifierConstructorDescriptionprivate
EntityDensityManager
(int p_i231621_1_, it.unimi.dsi.fastutil.objects.Object2IntOpenHashMap<EntityClassification> p_i231621_2_, MobDensityTracker p_i231621_3_) -
Method Summary
Modifier and TypeMethodDescriptionprivate 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>
int
-
Field Details
-
spawnableChunkCount
private final int spawnableChunkCount -
mobCategoryCounts
private final it.unimi.dsi.fastutil.objects.Object2IntOpenHashMap<EntityClassification> mobCategoryCounts -
spawnPotential
-
unmodifiableMobCategoryCounts
private final it.unimi.dsi.fastutil.objects.Object2IntMap<EntityClassification> unmodifiableMobCategoryCounts -
lastCheckedPos
-
lastCheckedType
-
lastCharge
private double lastCharge
-
-
Constructor Details
-
EntityDensityManager
private EntityDensityManager(int p_i231621_1_, it.unimi.dsi.fastutil.objects.Object2IntOpenHashMap<EntityClassification> p_i231621_2_, MobDensityTracker p_i231621_3_)
-
-
Method Details
-
canSpawn
-
afterSpawn
-
getSpawnableChunkCount
public int getSpawnableChunkCount() -
getMobCategoryCounts
-
canSpawnForCategory
-