Class ProfileProperty

java.lang.Object
com.destroystokyo.paper.profile.ProfileProperty

public final class ProfileProperty extends Object
Represents a property on a PlayerProfile.
  • Constructor Details

    • ProfileProperty

      public ProfileProperty(String name, String value)
      Creates an unsigned property.
      Parameters:
      name - the property name
      value - the property value
    • ProfileProperty

      public ProfileProperty(String name, String value, @Nullable String signature)
      Creates a property.
      Parameters:
      name - the property name, at most 64 characters
      value - the property value, at most 32767 characters
      signature - the signature, at most 1024 characters, or null if unsigned
  • Method Details

    • getName

      public String getName()
      Gets the name of this property.
      Returns:
      The property name, ie "textures"
    • getValue

      public String getValue()
      Gets the value of this property.
      Returns:
      The property value, likely to be base64 encoded
    • getSignature

      public @Nullable String getSignature()
      Gets the signature of this property.
      Returns:
      A signature for signed properties
    • isSigned

      public boolean isSigned()
      Checks whether this property is signed.
      Returns:
      If this property has a signature or not
    • equals

      public boolean equals(@Nullable Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object