public interface ProfileProperty
GameProfile's profile property map.
This interface should not be implemented.
of(String, String),
of(String, String, String)| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Gets the name of this property.
|
Optional<String> |
getSignature()
Gets the signature of this property.
|
String |
getValue()
Gets the value of this property.
|
default boolean |
hasSignature()
Tests if this property has a signature.
|
static ProfileProperty |
of(String name,
String value)
Creates a new property.
|
static ProfileProperty |
of(String name,
String value,
String signature)
Creates a new signed property.
|
static ProfileProperty of(String name, String value)
name - The name for the propertyvalue - The value of the propertystatic ProfileProperty of(String name, String value, @Nullable String signature)
Depending on the property name, if the signature is provided it must originate from Mojang.
name - The name for the propertyvalue - The value of the propertysignature - The signature of the propertyString getName()
String getValue()
Optional<String> getSignature()
Depending on the property name, if the signature is provided it must originate from Mojang.
Optional.empty() if not presentdefault boolean hasSignature()