Class MobSpawnSettingsBuilder

java.lang.Object
net.minecraft.world.level.biome.MobSpawnSettings.Builder
net.neoforged.neoforge.common.world.MobSpawnSettingsBuilder

public class MobSpawnSettingsBuilder extends net.minecraft.world.level.biome.MobSpawnSettings.Builder
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private final Set<net.minecraft.world.entity.EntityType<?>>
     
    private final Set<net.minecraft.world.entity.MobCategory>
     

    Fields inherited from class net.minecraft.world.level.biome.MobSpawnSettings.Builder

    creatureGenerationProbability, mobSpawnCosts, spawners
  • Constructor Summary

    Constructors
    Constructor
    Description
    MobSpawnSettingsBuilder(net.minecraft.world.level.biome.MobSpawnSettings orig)
     
  • Method Summary

    Modifier and Type
    Method
    Description
     
    net.minecraft.world.level.biome.MobSpawnSettings.MobSpawnCost
    getCost(net.minecraft.world.entity.EntityType<?> type)
     
    Set<net.minecraft.world.entity.EntityType<?>>
     
    float
     
    net.minecraft.util.random.WeightedList.Builder<net.minecraft.world.level.biome.MobSpawnSettings.SpawnerData>
    getSpawner(net.minecraft.world.entity.MobCategory type)
     
    Set<net.minecraft.world.entity.MobCategory>
     
    removeSpawnCost(net.minecraft.world.entity.EntityType<?>... entityTypes)
     

    Methods inherited from class net.minecraft.world.level.biome.MobSpawnSettings.Builder

    addMobCharge, addSpawn, build, creatureGenerationProbability

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • typesView

      private final Set<net.minecraft.world.entity.MobCategory> typesView
    • costView

      private final Set<net.minecraft.world.entity.EntityType<?>> costView
  • Constructor Details

    • MobSpawnSettingsBuilder

      public MobSpawnSettingsBuilder(net.minecraft.world.level.biome.MobSpawnSettings orig)
  • Method Details

    • getSpawnerTypes

      public Set<net.minecraft.world.entity.MobCategory> getSpawnerTypes()
    • getSpawner

      public net.minecraft.util.random.WeightedList.Builder<net.minecraft.world.level.biome.MobSpawnSettings.SpawnerData> getSpawner(net.minecraft.world.entity.MobCategory type)
    • getEntityTypes

      public Set<net.minecraft.world.entity.EntityType<?>> getEntityTypes()
    • getCost

      @Nullable public net.minecraft.world.level.biome.MobSpawnSettings.MobSpawnCost getCost(net.minecraft.world.entity.EntityType<?> type)
    • getProbability

      public float getProbability()
    • disablePlayerSpawn

      public MobSpawnSettingsBuilder disablePlayerSpawn()
    • removeSpawnCost

      public MobSpawnSettingsBuilder removeSpawnCost(net.minecraft.world.entity.EntityType<?>... entityTypes)