Interface ProfileProperty

    • Method Detail

      • of

        static ProfileProperty of​(String name,
                                  String value)
        Creates a new property.
        Parameters:
        name - The name for the property
        value - The value of the property
        Returns:
        The new property
      • of

        static ProfileProperty of​(String name,
                                  String value,
                                  @Nullable String signature)
        Creates 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
      • name

        String name()
        Gets the name of this property.
        Returns:
        The name
      • value

        String value()
        Gets the value of this property.
        Returns:
        The value
      • signature

        Optional<String> signature()
        Gets 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
      • hasSignature

        default boolean hasSignature()
        Tests if this property has a signature.
        Returns:
        Whether this property has a signature