Class ProfileProperty

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

@NullMarked public final class ProfileProperty extends Object
Represents a property on a PlayerProfile
Since:
1.12.2
  • Constructor Details

    • ProfileProperty

      public ProfileProperty(String name, String value)
      Since:
      1.12.2
    • ProfileProperty

      public ProfileProperty(String name, String value, @Nullable String signature)
      Since:
      1.12.2
  • Method Details

    • getName

      public String getName()
      Returns:
      The property name, ie "textures"
      Since:
      1.12.2
    • getValue

      public String getValue()
      Returns:
      The property value, likely to be base64 encoded
      Since:
      1.12.2
    • getSignature

      public @Nullable String getSignature()
      Returns:
      A signature from Mojang for signed properties
      Since:
      1.12.2
    • isSigned

      public boolean isSigned()
      Returns:
      If this property has a signature or not
      Since:
      1.12.2
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object