mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-06 02:35:49 +01:00
parent
aba0972e9a
commit
98756897b7
1 changed files with 6 additions and 0 deletions
|
@ -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() + '}';
|
||||
|
|
Loading…
Reference in a new issue