Class WorldEntitySpawner.EntityDensityManager

  • Enclosing class:
    WorldEntitySpawner

    public static class WorldEntitySpawner.EntityDensityManager
    extends java.lang.Object
    • Field Detail

      • spawnableChunkCount

        private final int spawnableChunkCount
      • mobCategoryCounts

        private final it.unimi.dsi.fastutil.objects.Object2IntOpenHashMap<EntityClassification> mobCategoryCounts
      • 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 Detail

      • EntityDensityManager

        private EntityDensityManager​(int p_i231621_1_,
                                     it.unimi.dsi.fastutil.objects.Object2IntOpenHashMap<EntityClassification> p_i231621_2_,
                                     MobDensityTracker p_i231621_3_)
    • Method Detail

      • 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()