Package net.minecraft.world.level
Class NaturalSpawner.SpawnState
java.lang.Object
net.minecraft.world.level.NaturalSpawner.SpawnState
- Enclosing class:
NaturalSpawner
-
Field Summary
Modifier and TypeFieldDescriptionprivate double
private BlockPos
private EntityType
<?> private final LocalMobCapCalculator
private final it.unimi.dsi.fastutil.objects.Object2IntOpenHashMap
<MobCategory> private final int
private final PotentialCalculator
private final it.unimi.dsi.fastutil.objects.Object2IntMap
<MobCategory> -
Constructor Summary
ConstructorDescriptionSpawnState
(int p_186544_, it.unimi.dsi.fastutil.objects.Object2IntOpenHashMap<MobCategory> p_186545_, PotentialCalculator p_186546_, LocalMobCapCalculator p_186547_) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
afterSpawn
(Mob p_47132_, ChunkAccess p_47133_) private boolean
canSpawn
(EntityType<?> p_47128_, BlockPos p_47129_, ChunkAccess p_47130_) (package private) boolean
canSpawnForCategory
(MobCategory p_186549_, ChunkPos p_186550_) it.unimi.dsi.fastutil.objects.Object2IntMap
<MobCategory> int
-
Field Details
-
spawnableChunkCount
private final int spawnableChunkCount -
mobCategoryCounts
-
spawnPotential
-
unmodifiableMobCategoryCounts
private final it.unimi.dsi.fastutil.objects.Object2IntMap<MobCategory> unmodifiableMobCategoryCounts -
localMobCapCalculator
-
lastCheckedPos
-
lastCheckedType
-
lastCharge
private double lastCharge
-
-
Constructor Details
-
SpawnState
SpawnState(int p_186544_, it.unimi.dsi.fastutil.objects.Object2IntOpenHashMap<MobCategory> p_186545_, PotentialCalculator p_186546_, LocalMobCapCalculator p_186547_)
-
-
Method Details
-
canSpawn
-
afterSpawn
-
getSpawnableChunkCount
public int getSpawnableChunkCount() -
getMobCategoryCounts
-
canSpawnForCategory
-