Class PlayerTexturesProperty

java.lang.Object
de.saibotk.jmaw.PlayerProperty
de.saibotk.jmaw.PlayerTexturesProperty

public class PlayerTexturesProperty extends PlayerProperty
This models the response of the Mojang API when querying for a PlayerProfile and his PlayerProperty list. If the player has a property called "textures" then it will be converted to an instance of this class.
Since:
1.0
  • Constructor Details

    • PlayerTexturesProperty

      public PlayerTexturesProperty()
  • Method Details

    • getSkin

      public Optional<PlayerSkinTexture> getSkin()
      Returns the skin texture object.
      Returns:
      an instance of PlayerSkinTexture.
      Since:
      1.0
    • getCape

      public Optional<PlayerCapeTexture> getCape()
      Returns the players cape texture.
      Returns:
      an instance of PlayerCapeTexture.
      Since:
      1.0
    • getTimestamp

      public Long getTimestamp()
      Returns the timestamp, when the response was answered.
      Returns:
      the timestamp.
      Since:
      1.0
    • getProfileId

      public String getProfileId()
      Returns the uuid of the player.
      Returns:
      the uuid.
      Since:
      1.0
    • getProfileName

      public String getProfileName()
      Returns the players username.
      Returns:
      the username.
      Since:
      1.0
    • getSignatureRequired

      public boolean getSignatureRequired()
      Returns if a signature was requested or not.
      Returns:
      true if a signature was requested, false if not.
      Since:
      1.0