Class SkullTexture.Profile
java.lang.Object
com.saicone.rtag.util.SkullTexture.Profile
- Enclosing class:
SkullTexture
Item profile representation, can be static of dynamic profile.
-
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull SkullTexture.Profileempty()Gets the cape url of this profile texture value.getName()Gets the display name of this profile, on dynamic profiles this can be null.Gets the signature of this profile texture value.Gets the skin url of this profile texture value.Gets the texture value of this profile.Gets the json representation of this profile texture value.Gets the unique ID of this profile, on dynamic profiles this can be null.booleanCheck if this profile correspond to a Bedrock account.booleanCheck if this profile will be automatically resolved.booleanisEmpty()Check if this profile doesn't contain a texture value.booleanisJava()Check if this profile correspond to a randomly-generate unique id, normally used on MC Java accounts.booleanCheck if this profile correspond to a name-generated unique id, normally used on offline Java accounts.booleanisStatic()Check if this profile will not be automatically resolved.booleanisValid()Check if this profile is provided by a real id.toString()static @NotNull SkullTexture.ProfileCreate a profile value with provided parameters.
This profile will always returnfalseonisValid().static @NotNull SkullTexture.ProfileCreate a profile value with provided parameters.static @NotNull SkullTexture.ProfileCreate a profile value with provided parameters.static @NotNull SkullTexture.ProfilevalueOf(@Nullable UUID uniqueId, @Nullable String name, @Nullable String texture, @Nullable String signature) Create a profile value with provided parameters.
-
Method Details
-
empty
- Returns:
- an empty profile.
-
valueOf
-
valueOf
-
valueOf
@NotNull public static @NotNull SkullTexture.Profile valueOf(@Nullable @Nullable UUID uniqueId, @Nullable @Nullable String name, @Nullable @Nullable String texture) Create a profile value with provided parameters.- Parameters:
uniqueId- the player id.name- the player name.texture- a base64-encoded texture value.- Returns:
- a newly generated profile value.
-
valueOf
@NotNull public static @NotNull SkullTexture.Profile valueOf(@Nullable @Nullable UUID uniqueId, @Nullable @Nullable String name, @Nullable @Nullable String texture, @Nullable @Nullable String signature) Create a profile value with provided parameters.- Parameters:
uniqueId- the player id.name- the player name.texture- a base64-encoded texture value.signature- a signature for texture value.- Returns:
- a newly generated profile value.
-
isJava
public boolean isJava()Check if this profile correspond to a randomly-generate unique id, normally used on MC Java accounts.- Returns:
- true if the current profile id is version 4.
-
isOffline
public boolean isOffline()Check if this profile correspond to a name-generated unique id, normally used on offline Java accounts.- Returns:
- true if the current profile id is version 3.
-
isBedrock
public boolean isBedrock()Check if this profile correspond to a Bedrock account.- Returns:
- true if the current profile id is an xbox id.
-
isValid
public boolean isValid()Check if this profile is provided by a real id.- Returns:
- true if this profile is valid.
-
isEmpty
public boolean isEmpty()Check if this profile doesn't contain a texture value.- Returns:
- true if this profiles is empty.
-
isStatic
public boolean isStatic()Check if this profile will not be automatically resolved.- Returns:
- true if this profile is static.
-
isDynamic
public boolean isDynamic()Check if this profile will be automatically resolved.- Returns:
- true if this profile is dynamic.
-
getUniqueId
Gets the unique ID of this profile, on dynamic profiles this can be null.- Returns:
- an unique id.
-
getName
Gets the display name of this profile, on dynamic profiles this can be null.- Returns:
- a player name.
-
getTexture
-
getTextureJson
-
getSignature
-
getSkinUrl
-
getCapeUrl
-
toString
-