Class MobSpawnSettings.Builder
java.lang.Object
net.minecraft.world.level.biome.MobSpawnSettings.Builder
- Direct Known Subclasses:
MobSpawnSettingsBuilder
- Enclosing class:
MobSpawnSettings
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final Map<EntityType<?>, MobSpawnSettings.MobSpawnCost> protected final Map<MobCategory, WeightedList.Builder<MobSpawnSettings.SpawnerData>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllCosts(Map<EntityType<?>, MobSpawnSettings.MobSpawnCost> costs) addAllSpawns(MobCategory category, WeightedList<MobSpawnSettings.SpawnerData> spawns) addMobSpawnCost(EntityType<?> type, double charge, double energyBudget) addSpawn(EntityType<?> type, int weight, int minCount, int maxCount) addSpawn(EntityType<?> type, int weight, IntProvider count) addSpawn(EntityType<?> type, MobCategory category, int weight, IntProvider count) Deprecated.build()dontOverride(MobCategory category) protected WeightedList.Builder<MobSpawnSettings.SpawnerData> forCategory(MobCategory category) noSpawns(MobCategory category)
-
Field Details
-
spawnsByCategory
protected final Map<MobCategory, WeightedList.Builder<MobSpawnSettings.SpawnerData>> spawnsByCategory -
mobSpawnCosts
-
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
addSpawn
public MobSpawnSettings.Builder addSpawn(EntityType<?> type, int weight, int minCount, int maxCount) -
addSpawn
-
addSpawn
@Deprecated public MobSpawnSettings.Builder addSpawn(EntityType<?> type, MobCategory category, int weight, IntProvider count) Deprecated. -
addAllSpawns
public MobSpawnSettings.Builder addAllSpawns(MobCategory category, WeightedList<MobSpawnSettings.SpawnerData> spawns) -
noSpawns
-
dontOverride
-
addMobSpawnCost
public MobSpawnSettings.Builder addMobSpawnCost(EntityType<?> type, double charge, double energyBudget) -
addAllCosts
public MobSpawnSettings.Builder addAllCosts(Map<EntityType<?>, MobSpawnSettings.MobSpawnCost> costs) -
build
-
forCategory
-