Interface BiomeSpawner

All Superinterfaces:
Wrapper

@NullMarked @AsOf("2.3.0") public interface BiomeSpawner extends 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
  • Field Details

  • Method Details

    • spawners

      Gets the spawners for each mob category.
      Returns:
      the spawners for each mob category
      Since:
      2.3.0
    • mobSpawnCosts

      @AsOf("2.3.0") Map<EntityType, SpawnCost> mobSpawnCosts()
      Gets the spawn cost for each mob type.
      Returns:
      the spawn cost for each mob type
      Since:
      2.3.0
    • creatureGenerationProbability

      @AsOf("2.3.0") float creatureGenerationProbability()
      Gets the creature generation probability.
      Returns:
      the creature generation probability
      Since:
      2.3.0
    • toBuilder

      @AsOf("2.3.0") default BiomeSpawner.Builder toBuilder()
      Creates a new builder from this BiomeSpawner.
      Returns:
      a new builder from this BiomeSpawner
      Since:
      2.3.0
    • builder

      @AsOf("2.3.0") static BiomeSpawner.Builder builder()
      Returns:
      a new BiomeSpawner builder
      Since:
      2.3.0
    • empty

      @AsOf("2.3.0") static BiomeSpawner empty()
      Creates an empty BiomeSpawner.
      Returns:
      an empty BiomeSpawner