mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-24 08:06:41 +01:00
Make tags Keyed
This commit is contained in:
parent
6fce004fa2
commit
bc99dfe89f
1 changed files with 7 additions and 0 deletions
|
@ -3,7 +3,9 @@ package org.bukkit.craftbukkit.tag;
|
|||
import net.minecraft.server.MinecraftKey;
|
||||
import net.minecraft.server.TagsServer;
|
||||
import org.bukkit.Keyed;
|
||||
import org.bukkit.NamespacedKey;
|
||||
import org.bukkit.Tag;
|
||||
import org.bukkit.craftbukkit.util.CraftNamespacedKey;
|
||||
|
||||
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;
|
||||
}
|
||||
|
||||
@Override
|
||||
public NamespacedKey getKey() {
|
||||
return CraftNamespacedKey.fromMinecraft(tag);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue