#create fixed uuid

1 messages · Page 1 of 1 (latest)

lament shale
#

how can i create a fixed uuid, which i can check later on

outer cipher
#

UUID.fromString() with your hardcoded UUID, or UUID.nameUUIDFromBytes() if you want to derive UUID from any byte array

lament shale
#

fromString would be a 36 character string then?

outer cipher
#

yep

lament shale
#

minecraft doesnt have a helper function to convert to/from int array as used in nbt etc?

outer cipher
#

there is Uuids class which contains codecs for converting from int array to uuid

#

but that's just codecs

#

oh wait you can use Uuids.toIntArray() to convert to int[]

lament shale
#

yea, i just found it myself