Class WorldEntitySpawner.EntityDensityManager

java.lang.Object
net.minecraft.world.spawner.WorldEntitySpawner.EntityDensityManager
Enclosing class:
WorldEntitySpawner

public static class WorldEntitySpawner.EntityDensityManager extends Object
  • Field Details

    • spawnableChunkCount

      private final int spawnableChunkCount
    • mobCategoryCounts

      private final it.unimi.dsi.fastutil.objects.Object2IntOpenHashMap<EntityClassification> mobCategoryCounts
    • spawnPotential

      private final MobDensityTracker spawnPotential
    • unmodifiableMobCategoryCounts

      private final it.unimi.dsi.fastutil.objects.Object2IntMap<EntityClassification> unmodifiableMobCategoryCounts
    • lastCheckedPos

      @Nullable private BlockPos lastCheckedPos
    • lastCheckedType

      @Nullable private EntityType<?> 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

      private boolean canSpawn(EntityType<?> p_234989_1_, BlockPos p_234989_2_, IChunk p_234989_3_)
    • afterSpawn

      private void afterSpawn(MobEntity p_234990_1_, IChunk p_234990_2_)
    • getSpawnableChunkCount

      public int getSpawnableChunkCount()
    • getMobCategoryCounts

      public it.unimi.dsi.fastutil.objects.Object2IntMap<EntityClassification> getMobCategoryCounts()
    • canSpawnForCategory

      private boolean canSpawnForCategory(EntityClassification p_234991_1_)