Method
readUUID
(NBTTagCompound data, String tag)
Source from the content-addressed store, hash-verified
| 69 | } |
| 70 | |
| 71 | public static UUID readUUID(NBTTagCompound data, String tag) { |
| 72 | if (data.hasKey(tag)) { |
| 73 | NBTTagCompound nbtTag = data.getCompoundTag(tag); |
| 74 | return new UUID(nbtTag.getLong("most"), nbtTag.getLong("least")); |
| 75 | } |
| 76 | return null; |
| 77 | } |
| 78 | |
| 79 | public static byte[] save(NBTTagCompound compound) { |
| 80 | ByteArrayOutputStream baos = new ByteArrayOutputStream(); |
Callers
nothing calls this directly
Tested by
no test coverage detected