Interface BiomeSpawner
- All Superinterfaces:
Wrapper
Represents the spawning settings for a biome, including the spawners for each mob category, the spawn costs for each mob type, and the creature generation probability.
This interface wraps Minecraft's MobSpawnSettings class.
- Since:
- 2.3.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder for creating a BiomeSpawner.static interfaceNested classes/interfaces inherited from interface Wrapper
Wrapper.Context<C> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final floatstatic final WireProvider<BiomeSpawner.Factory> -
Method Summary
Modifier and TypeMethodDescriptionstatic BiomeSpawner.Builderbuilder()floatGets the creature generation probability.static BiomeSpawnerempty()Creates an empty BiomeSpawner.Gets the spawn cost for each mob type.spawners()Gets the spawners for each mob category.default BiomeSpawner.BuilderCreates a new builder from this BiomeSpawner.Methods inherited from interface Wrapper
asHandle, toMinecraft
-
Field Details
-
DEFAULT_CREATURE_GENERATION_PROBABILITY
static final float DEFAULT_CREATURE_GENERATION_PROBABILITY- See Also:
-
WIRE
-
-
Method Details
-
spawners
Gets the spawners for each mob category.- Returns:
- the spawners for each mob category
- Since:
- 2.3.0
-
mobSpawnCosts
Gets the spawn cost for each mob type.- Returns:
- the spawn cost for each mob type
- Since:
- 2.3.0
-
creatureGenerationProbability
Gets the creature generation probability.- Returns:
- the creature generation probability
- Since:
- 2.3.0
-
toBuilder
Creates a new builder from this BiomeSpawner.- Returns:
- a new builder from this BiomeSpawner
- Since:
- 2.3.0
-
builder
- Returns:
- a new BiomeSpawner builder
- Since:
- 2.3.0
-
empty
Creates an empty BiomeSpawner.- Returns:
- an empty BiomeSpawner
-