Interface ProfileProperty
- All Superinterfaces:
- DataSerializable
Represents a property in a 
GameProfile's profile property map.
 This interface should not be implemented by third parties - use
 of(String, String) or of(String, String, String) to
 create instances instead.
- See Also:
- 
Nested Class SummaryNested Classes
- 
Field SummaryFields
- 
Method SummaryModifier and TypeMethodDescriptiondefault booleanTests if this property has a signature.name()Gets the name of this property.static ProfilePropertyCreates a new property.static ProfilePropertyCreates a new signed property.Gets the signature of this property.value()Gets the value of this property.Methods inherited from interface org.spongepowered.api.data.persistence.DataSerializablecontentVersion, toContainer
- 
Field Details- 
TEXTURESThe name of thetexturesproperty.This is used with Keys.SKIN_PROFILE_PROPERTYto set the skin of aHumanoid.- See Also:
 
 
- 
- 
Method Details- 
ofCreates a new property.- Parameters:
- name- The name for the property
- value- The value of the property
- Returns:
- The new property
 
- 
ofCreates a new signed property.Depending on the property name, if the signature is provided it must originate from Mojang. - Parameters:
- name- The name for the property
- value- The value of the property
- signature- The signature of the property
- Returns:
- The new property
 
- 
nameString name()Gets the name of this property.- Returns:
- The name
 
- 
valueString value()Gets the value of this property.- Returns:
- The value
 
- 
signatureGets the signature of this property.Depending on the property name, if the signature is provided it must originate from Mojang. - Returns:
- The signature, or Optional.empty()if not present
 
- 
hasSignaturedefault boolean hasSignature()Tests if this property has a signature.- Returns:
- Whether this property has a signature
 
 
-