From 98756897b79b65a2cb2d75a2ee4856f3873fa032 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Mon, 9 May 2022 18:07:51 +1000 Subject: [PATCH] #1046: Make World implement Keyed By: pop4959 --- .../src/main/java/org/bukkit/craftbukkit/CraftWorld.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/CraftWorld.java b/paper-server/src/main/java/org/bukkit/craftbukkit/CraftWorld.java index 7e66df390e..f81c1f6376 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/CraftWorld.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/CraftWorld.java @@ -75,6 +75,7 @@ import org.bukkit.Effect; import org.bukkit.FluidCollisionMode; import org.bukkit.GameRule; import org.bukkit.Location; +import org.bukkit.NamespacedKey; import org.bukkit.Particle; import org.bukkit.Raid; import org.bukkit.Sound; @@ -581,6 +582,11 @@ public class CraftWorld extends CraftRegionAccessor implements World { return world.uuid; } + @Override + public NamespacedKey getKey() { + return CraftNamespacedKey.fromMinecraft(world.dimension().location()); + } + @Override public String toString() { return "CraftWorld{name=" + getName() + '}';