Enum Class ResourcePackStatusEvent.ResourcePackStatus

java.lang.Object
java.lang.Enum<ResourcePackStatusEvent.ResourcePackStatus>
org.spongepowered.api.event.entity.living.player.ResourcePackStatusEvent.ResourcePackStatus
All Implemented Interfaces:
Serializable, Comparable<ResourcePackStatusEvent.ResourcePackStatus>, Constable
Enclosing interface:
ResourcePackStatusEvent

public static enum ResourcePackStatusEvent.ResourcePackStatus extends Enum<ResourcePackStatusEvent.ResourcePackStatus>
The different possible responses the client can have.
  • Enum Constant Details

  • Method Details

    • values

      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ResourcePackStatusEvent.ResourcePackStatus valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • wasSuccessful

      public Optional<Boolean> wasSuccessful()
      Gets if this status indicates that the pack was successfully set.
      Returns:
      true if it was successful, false if it was not, and Optional.empty() if it cannot be determined at this time.