Interface Biome
public interface Biome
A Minecraft biome.
Biomes are identified by their ID.
Canonical implementations of this interface can be obtained with
Implementations of this class are expected to be immutable and thread safe.
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
Gets aBiomeinstance 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
Biomeimplementation with the given ID
-
parse
Parses an identifier and returns a correspondingBiome. This is just a shortcut forBiome.get(Identifier.parse(serializedBiome).- Parameters:
serializedBiome- a serializedIdentifier- Returns:
- a biome with the given identifier
-