CloneAllTagsShort for Quicker Server Interaction

This commit is contained in:
Kam committed 2023-05-08 23:46:38 -04:00
1 parent e6786a985e
commit adec63c763
3 files changed
+25 -2

No files matched your search

@@ -40,6 +40,14 @@ public class Tag implements ITag {
compound.setString("Uuid", uuid.toString());
compound.setBoolean("HideTag", hideTag);
}
public void readShortNBT(NBTTagCompound compound){
name = compound.getString("Name");
uuid = UUID.fromString(compound.getString("Uuid"));
}
public void writeShortNBT(NBTTagCompound compound){
compound.setString("Name", name);
compound.setString("Uuid", uuid.toString());
}
public int getId() {
return this.id;