Package com.xpdustry.distributor.player
Interface MUUID
@Immutable
public interface MUUID
The mindustry identity format. A combination of a UUID and a USID.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidThrows anIllegalArgumentExceptionif the given string is not a valid USID.static voidThrows anIllegalArgumentExceptionif the given string is not a valid UUID.static MUUIDfrom(mindustry.gen.Player player) Creates a new MUUID from aPlayer.static MUUIDfrom(mindustry.net.Administration.PlayerInfo info) Creates a new MUUID from aAdministration.PlayerInfo.default byte[]Returns the USID as decoded bytes.default byte[]Returns the UUID as decoded bytes.getUsid()Returns the USID.getUuid()Returns the UUID.static booleanReturns whether the given string is a valid USID.static booleanReturns whether the given string is a valid UUID.static MUUIDCreates a new MUUID from a UUID and USID.default UUIDTODO important doc
-
Method Details
-
of
Creates a new MUUID from a UUID and USID.- Parameters:
uuid- the UUIDusid- the USID- Returns:
- the MUUID
-
from
Creates a new MUUID from aPlayer.- Parameters:
player- the player- Returns:
- the MUUID
-
from
Creates a new MUUID from aAdministration.PlayerInfo.- Parameters:
info- the player info- Returns:
- the MUUID
-
isUuid
Returns whether the given string is a valid UUID.- Parameters:
uuid- the UUID to check- Returns:
- true if the given string is a valid UUID, false otherwise
-
checkUuid
Throws anIllegalArgumentExceptionif the given string is not a valid UUID. -
isUsid
Returns whether the given string is a valid USID.- Parameters:
usid- the USID to check- Returns:
- true if the given string is a valid USID, false otherwise
-
checkUsid
Throws anIllegalArgumentExceptionif the given string is not a valid USID. -
getUuid
String getUuid()Returns the UUID. -
getDecodedUuid
default byte[] getDecodedUuid()Returns the UUID as decoded bytes. -
getUsid
String getUsid()Returns the USID. -
getDecodedUsid
default byte[] getDecodedUsid()Returns the USID as decoded bytes. -
toRealUUID
TODO important doc- See Also:
-