Package net.minecraft.world
Class SpawnHelper.Info
java.lang.Object
net.minecraft.world.SpawnHelper.Info
- Enclosing class:
- SpawnHelper
public static class SpawnHelper.Info extends Object
-
Field Summary
Fields Modifier and Type Field Description private doublecachedDensityMassprivate EntityType<?>cachedEntityTypeprivate BlockPoscachedPosprivate GravityFielddensityFieldprivate Object2IntOpenHashMap<SpawnGroup>groupToCountprivate Object2IntMap<SpawnGroup>groupToCountViewprivate intspawningChunkCount -
Constructor Summary
Constructors Modifier Constructor Description privateInfo(int spawningChunkCount, Object2IntOpenHashMap<SpawnGroup> groupToCount, GravityField densityField) -
Method Summary
Modifier and Type Method Description Object2IntMap<SpawnGroup>getGroupToCount()intgetSpawningChunkCount()private booleanisBelowCap(SpawnGroup group)private voidrun(MobEntity entity, Chunk chunk)private booleantest(EntityType<?> type, BlockPos pos, Chunk chunk)
-
Field Details
-
spawningChunkCount
private final int spawningChunkCount -
groupToCount
-
densityField
-
groupToCountView
-
cachedPos
-
cachedEntityType
-
cachedDensityMass
private double cachedDensityMass
-
-
Constructor Details
-
Info
private Info(int spawningChunkCount, Object2IntOpenHashMap<SpawnGroup> groupToCount, GravityField densityField)
-
-
Method Details
-
test
-
run
- See Also:
SpawnHelper.Runner.run(MobEntity, Chunk)
-
getSpawningChunkCount
@Environment(CLIENT) public int getSpawningChunkCount() -
getGroupToCount
-
isBelowCap
-