public static class SpawnHelper.Info extends Object
Modifier and Type | Field and Description |
---|---|
private double |
cachedDensityMass |
private EntityType<?> |
cachedEntityType |
private BlockPos |
cachedPos |
private GravityField |
densityField |
private it.unimi.dsi.fastutil.objects.Object2IntOpenHashMap<SpawnGroup> |
groupToCount |
private it.unimi.dsi.fastutil.objects.Object2IntMap<SpawnGroup> |
groupToCountView |
private int |
spawningChunkCount |
Modifier | Constructor and Description |
---|---|
private |
Info(int spawningChunkCount,
it.unimi.dsi.fastutil.objects.Object2IntOpenHashMap<SpawnGroup> groupToCount,
GravityField densityField) |
Modifier and Type | Method and Description |
---|---|
it.unimi.dsi.fastutil.objects.Object2IntMap<SpawnGroup> |
getGroupToCount() |
int |
getSpawningChunkCount() |
private boolean |
isBelowCap(SpawnGroup group) |
private void |
run(MobEntity entity,
Chunk chunk) |
private boolean |
test(EntityType<?> type,
BlockPos pos,
Chunk chunk) |
private final int spawningChunkCount
private final it.unimi.dsi.fastutil.objects.Object2IntOpenHashMap<SpawnGroup> groupToCount
private final GravityField densityField
private final it.unimi.dsi.fastutil.objects.Object2IntMap<SpawnGroup> groupToCountView
@Nullable private EntityType<?> cachedEntityType
private double cachedDensityMass
private Info(int spawningChunkCount, it.unimi.dsi.fastutil.objects.Object2IntOpenHashMap<SpawnGroup> groupToCount, GravityField densityField)
private boolean test(EntityType<?> type, BlockPos pos, Chunk chunk)
private void run(MobEntity entity, Chunk chunk)
SpawnHelper.Runner.run(MobEntity, Chunk)
@Environment(value=CLIENT) public int getSpawningChunkCount()
public it.unimi.dsi.fastutil.objects.Object2IntMap<SpawnGroup> getGroupToCount()
private boolean isBelowCap(SpawnGroup group)