mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-27 05:02:56 +00:00
CloneAllTagsShort for Quicker Server Interaction
This commit is contained in:
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;
|
||||
|
||||
Reference in new issue
Block a user