Class PlayerProperty

java.lang.Object
de.saibotk.jmaw.PlayerProperty
Direct Known Subclasses:
PlayerTexturesProperty

public class PlayerProperty extends Object
This models the basic player property found in the list of all properties a player has (PlayerProfile.getProperties()). Usually not returned by the Mojang API, only the "textures" property is known to be returned, which will be converted automaticially to a PlayerTexturesProperty, a subclass to this. The rawValue field is mostly encoded in base64, which is automatically decoded for the PlayerTexturesProperty.
Since:
1.0
  • Constructor Details

    • PlayerProperty

      public PlayerProperty()
  • Method Details

    • getName

      public String getName()
      Returns the property's name.
      Returns:
      the name.
      Since:
      1.0
    • getRawValue

      public String getRawValue()
      Returns the raw value, that was returned by the API. Usually encoded as base64.
      Returns:
      the encoded raw value returned by the API.
      Since:
      1.0
    • getSignature

      public Optional<String> getSignature()
      Returns the base64 signature for the property, if requested.
      Returns:
      the signature or null if not requested.
      Since:
      1.0