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 interface -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic BiomeSpawner.Builderbuilder()floatGets the creature generation probability.static BiomeSpawnerReads Minecraft biome spawn settings into a wrapper.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, unwrap
-
Field Details
-
DEFAULT_CREATURE_GENERATION_PROBABILITY
static final float DEFAULT_CREATURE_GENERATION_PROBABILITY- See Also:
-
-
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
-
decode
Reads Minecraft biome spawn settings into a wrapper.- Parameters:
minecraftBiomeSpawner- the spawn settings to read- Returns:
- the wrapper for them
- Since:
- 3.3.0
-