Interface NaturalSpawner


public interface NaturalSpawner
Natural spawner configuration in a Biome. See Keys.NATURAL_SPAWNERS and Keys.SPAWN_CHANCE. Alternatively use NaturalSpawnCost.
  • Nested Class Summary Link icon

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
     
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    int
    max()
    Returns the maximum amount to spawn in an attempt.
    int
    min()
    Returns the minimum amount to spawn in an attempt.
    of(EntityType<?> type, int weight, int min, int max)
     
    Returns the entity type to spawn.
    int
    Returns the relative spawn weight.
  • Method Details Link icon

    • of Link icon

      static NaturalSpawner of(EntityType<?> type, int weight, int min, int max)
    • type Link icon

      EntityType<?> type()
      Returns the entity type to spawn.
      Returns:
      The entity type to spawn
    • min Link icon

      int min()
      Returns the minimum amount to spawn in an attempt.
      Returns:
      The minimum amount
    • max Link icon

      int max()
      Returns the maximum amount to spawn in an attempt.
      Returns:
      The maximum amount
    • weight Link icon

      int weight()
      Returns the relative spawn weight.
      Returns:
      The spawn weight