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

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

    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

    • of

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

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

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

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

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