public interface Biome
A Minecraft biome. Biomes are identified by their ID.
Canonical implementations of this interface can be obtained with byId(Identifier) and parse(String).
Implementations of this class are expected to be immutable and thread safe.
See Also:
  • Method Details

    • identifier

      Identifier identifier()
      Returns:
      the identifier of this biome
    • byId

      static Biome byId(Identifier id)
      Gets a Biome instance with the given ID. This may return a cached instance or create a new object if necessary.
      Parameters:
      id - the ID of the Biome.
      Returns:
      a Biome implementation with the given ID
    • parse

      static Biome parse(String serializedBiome)
      Parses an identifier and returns a corresponding Biome. This is just a shortcut for Biome.get(Identifier.parse(serializedBiome).
      Parameters:
      serializedBiome - a serialized Identifier
      Returns:
      a biome with the given identifier