CrTUUID - friendlyhj/ZenUtils GitHub Wiki
CrTUUID
exposes java.util.UUID
Java Class to ZenScript.
You'd better import the package to avoid errors and write script easier.
import mods.zenutils.UUID;
- Using the
UUID.randomUUID()
to call a random UUID - Using the
UUID.fromString(String name)
to call a UUID according to String - Using the
entityObj.getUUIDObject()
to get unique ID of entity.
long getMostSignificantBits()
long getLeastSignificantBits()
String asString()
You can use ==
to check if two CrTUUID objects are equal and use >
, <
and other compare operators to compare them.