SPIGOT-5877: Add scaffolding for custom dimensions and biomes

This commit is contained in:
Martoph 2021-04-11 17:54:45 +10:00 committed by md_5
parent ccccb62537
commit b302317a95
No known key found for this signature in database
GPG key ID: E8E901AC7C617C11
2 changed files with 10 additions and 2 deletions

View file

@ -2430,7 +2430,11 @@ public interface World extends PluginMessageRecipient, Metadatable {
/**
* Represents the "end" map
*/
THE_END(1);
THE_END(1),
/**
* Represents a custom dimension
*/
CUSTOM(-999);
private final int id;
private static final Map<Integer, Environment> lookup = new HashMap<Integer, Environment>();

View file

@ -87,7 +87,11 @@ public enum Biome implements Keyed {
SOUL_SAND_VALLEY,
CRIMSON_FOREST,
WARPED_FOREST,
BASALT_DELTAS;
BASALT_DELTAS,
/**
* Represents a custom Biome
*/
CUSTOM;
private final NamespacedKey key;