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 it.unimi.dsi.fastutil.objects.Object2IntOpenHashMap<MobCategory>
private int
private PotentialCalculator
private it.unimi.dsi.fastutil.objects.Object2IntMap<MobCategory>
-
Constructor Summary
ConstructorDescriptionSpawnState(int p_47118_, it.unimi.dsi.fastutil.objects.Object2IntOpenHashMap<MobCategory> p_47119_, PotentialCalculator p_47120_)
-
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_47135_)
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 -
lastCheckedPos
-
lastCheckedType
-
lastCharge
private double lastCharge
-
-
Constructor Details
-
SpawnState
SpawnState(int p_47118_, it.unimi.dsi.fastutil.objects.Object2IntOpenHashMap<MobCategory> p_47119_, PotentialCalculator p_47120_)
-
-
Method Details
-
canSpawn
-
afterSpawn
-
getSpawnableChunkCount
public int getSpawnableChunkCount() -
getMobCategoryCounts
-
canSpawnForCategory
-