+ nbt update

This commit is contained in:
坏黑
2019-05-26 15:02:29 +08:00
parent b09dfbde60
commit fd9817e5c5
4 changed files with 25 additions and 23 deletions

View File

@@ -34,15 +34,15 @@ public abstract class NMSHandler {
abstract public void sendActionBar(Player player, String text);
abstract public ItemStack saveNBT(ItemStack itemStack, NBTCompound compound);
abstract public Object _NBT(ItemStack itemStack);
abstract public ItemStack _NBT(ItemStack itemStack, Object compound);
public NBTCompound loadNBT(ItemStack itemStack) {
return (NBTCompound) _NBT(itemStack);
}
public static NMSHandler getHandler() {
return handler;
public ItemStack saveNBT(ItemStack itemStack, NBTCompound compound) {
return _NBT(itemStack, compound);
}
}