Class NaturalSpawner.SpawnState

java.lang.Object
net.minecraft.world.level.NaturalSpawner.SpawnState
Enclosing class:
NaturalSpawner

public static class NaturalSpawner.SpawnState extends Object
  • Field Details

    • spawnableChunkCount

      private final int spawnableChunkCount
    • mobCategoryCounts

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

      private final PotentialCalculator spawnPotential
    • unmodifiableMobCategoryCounts

      private final it.unimi.dsi.fastutil.objects.Object2IntMap<MobCategory> unmodifiableMobCategoryCounts
    • localMobCapCalculator

      private final LocalMobCapCalculator localMobCapCalculator
    • lastCheckedPos

      @Nullable private BlockPos lastCheckedPos
    • lastCheckedType

      @Nullable private EntityType<?> lastCheckedType
    • lastCharge

      private double lastCharge
  • Constructor Details

  • Method Details

    • canSpawn

      private boolean canSpawn(EntityType<?> p_47128_, BlockPos p_47129_, ChunkAccess p_47130_)
    • afterSpawn

      private void afterSpawn(Mob p_47132_, ChunkAccess p_47133_)
    • getSpawnableChunkCount

      public int getSpawnableChunkCount()
    • getMobCategoryCounts

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

      boolean canSpawnForCategory(MobCategory p_186549_, ChunkPos p_186550_)