MCPcopy Create free account
hub / github.com/BuildCraft/BuildCraft / writeUUID

Method writeUUID

common/buildcraft/lib/misc/NBTUtils.java:61–69  ·  view source on GitHub ↗
(NBTTagCompound data, String tag, UUID uuid)

Source from the content-addressed store, hash-verified

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)) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected