Skip to content

CrTUUID

youyihj edited this page May 2, 2021 · 5 revisions

CrTUUID

CrTUUID exposes java.util.UUID Java Class to ZenScript.

Importing the package

You'd better import the package to avoid errors and write script easier.

import mods.zenutils.UUID;

Calling a CrTUUID

  • 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.

ZenMethods

  • long getMostSignificantBits()
  • long getLeastSignificantBits()
  • String asString()

ZenOperators

You can use == to check if two CrTUUID objects are equal and use >, < and other compare operators to compare them.

Clone this wiki locally