(NBTTagCompound data, String tag, UUID uuid)
| 59 | } |
| 60 | |
| 61 | public static void writeUUID(NBTTagCompound data, String tag, UUID uuid) { |
| 62 | if (uuid == null) { |
| 63 | return; |
| 64 | } |
| 65 | NBTTagCompound nbtTag = new NBTTagCompound(); |
| 66 | nbtTag.setLong("most", uuid.getMostSignificantBits()); |
| 67 | nbtTag.setLong("least", uuid.getLeastSignificantBits()); |
| 68 | data.setTag(tag, nbtTag); |
| 69 | } |
| 70 | |
| 71 | public static UUID readUUID(NBTTagCompound data, String tag) { |
| 72 | if (data.hasKey(tag)) { |
nothing calls this directly
no outgoing calls
no test coverage detected