SPIGOT-5877: Add scaffolding for custom dimensions and biomes

By: Martoph <sager1018@gmail.com>
This commit is contained in:
Bukkit/Spigot
2021-04-11 17:54:45 +10:00
parent e829123b5e
commit 3b841edc7c
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 * Represents the "end" map
*/ */
THE_END(1); THE_END(1),
/**
* Represents a custom dimension
*/
CUSTOM(-999);
private final int id; private final int id;
private static final Map<Integer, Environment> lookup = new HashMap<Integer, Environment>(); 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, SOUL_SAND_VALLEY,
CRIMSON_FOREST, CRIMSON_FOREST,
WARPED_FOREST, WARPED_FOREST,
BASALT_DELTAS; BASALT_DELTAS,
/**
* Represents a custom Biome
*/
CUSTOM;
private final NamespacedKey key; private final NamespacedKey key;