Package net.lax1dude.eaglercraft.v1_8
Class EaglercraftUUID
- java.lang.Object
-
- net.lax1dude.eaglercraft.v1_8.EaglercraftUUID
-
- All Implemented Interfaces:
java.lang.Comparable<EaglercraftUUID>
public class EaglercraftUUID extends java.lang.Object implements java.lang.Comparable<EaglercraftUUID>
Copyright (c) 2022-2023 LAX1DUDE. All Rights Reserved. WITH THE EXCEPTION OF PATCH FILES, MINIFIED JAVASCRIPT, AND ALL FILES NORMALLY FOUND IN AN UNMODIFIED MINECRAFT RESOURCE PACK, YOU ARE NOT ALLOWED TO SHARE, DISTRIBUTE, OR REPURPOSE ANY FILE USED BY OR PRODUCED BY THE SOFTWARE IN THIS REPOSITORY WITHOUT PRIOR PERMISSION FROM THE PROJECT AUTHOR. NOT FOR COMMERCIAL OR MALICIOUS USE (please read the 'LICENSE' file this repo's root directory for more info)
-
-
Constructor Summary
Constructors Constructor Description EaglercraftUUID(byte[] uuid)
EaglercraftUUID(long msb, long lsb)
EaglercraftUUID(java.lang.String uuid)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(EaglercraftUUID val)
boolean
equals(java.lang.Object o)
static EaglercraftUUID
fromString(java.lang.String name)
byte[]
getBytes()
long
getLeastSignificantBits()
long
getMostSignificantBits()
int
hashCode()
static EaglercraftUUID
nameUUIDFromBytes(byte[] bytes)
java.lang.String
toString()
-
-
-
Method Detail
-
getBytes
public byte[] getBytes()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
getMostSignificantBits
public long getMostSignificantBits()
-
getLeastSignificantBits
public long getLeastSignificantBits()
-
fromString
public static EaglercraftUUID fromString(java.lang.String name)
-
nameUUIDFromBytes
public static EaglercraftUUID nameUUIDFromBytes(byte[] bytes)
-
compareTo
public int compareTo(EaglercraftUUID val)
- Specified by:
compareTo
in interfacejava.lang.Comparable<EaglercraftUUID>
-
-