Make tags Keyed

Dieser Commit ist enthalten in:
Matthew Miller 2019-02-17 13:11:51 +10:00 committet von md_5
Ursprung 6fce004fa2
Commit bc99dfe89f

Datei anzeigen

@ -3,7 +3,9 @@ package org.bukkit.craftbukkit.tag;
import net.minecraft.server.MinecraftKey; import net.minecraft.server.MinecraftKey;
import net.minecraft.server.TagsServer; import net.minecraft.server.TagsServer;
import org.bukkit.Keyed; import org.bukkit.Keyed;
import org.bukkit.NamespacedKey;
import org.bukkit.Tag; import org.bukkit.Tag;
import org.bukkit.craftbukkit.util.CraftNamespacedKey;
public abstract class CraftTag<N, B extends Keyed> implements Tag<B> { public abstract class CraftTag<N, B extends Keyed> implements Tag<B> {
@ -26,4 +28,9 @@ public abstract class CraftTag<N, B extends Keyed> implements Tag<B> {
return handle; return handle;
} }
@Override
public NamespacedKey getKey() {
return CraftNamespacedKey.fromMinecraft(tag);
}
} }