Enum ResourcePackStatus

java.lang.Object
java.lang.Enum<ResourcePackStatus>
net.kyori.adventure.resource.ResourcePackStatus
All Implemented Interfaces:
Serializable, Comparable<ResourcePackStatus>

public enum ResourcePackStatus extends Enum<ResourcePackStatus>
Resource pack application state.

Each status is a phase in the status state machine. The client provides this information back to servers as it attempts to download and apply resource packs.

Initial states are ACCEPTED, DECLINED, or INVALID_URL.

Since:
4.15.0
  • Enum Constant Details

    • ACCEPTED

      public static final ResourcePackStatus ACCEPTED
      Indicates that the user has accepted download.

      Next states: FAILED_DOWNLOAD, DOWNLOADED

      Since:
      4.15.0
    • DECLINED

      public static final ResourcePackStatus DECLINED
      Indicates that the user has declined a pack.

      Terminal state.

      Since:
      4.15.0
    • INVALID_URL

      public static final ResourcePackStatus INVALID_URL
      Indicates that the provided pack URL could not be parsed.

      Terminal state.

      Since:
      4.15.0
      Since Minecraft:
      1.20.3
    • FAILED_DOWNLOAD

      public static final ResourcePackStatus FAILED_DOWNLOAD
      Indicates that the download failed for some other reason.

      Terminal state.

      Since:
      4.15.0
    • DOWNLOADED

      public static final ResourcePackStatus DOWNLOADED
      Indicates that the resource pack has been successfully downloaded.

      Next states: FAILED_RELOAD, DISCARDED, or SUCCESSFULLY_LOADED

      Since:
      4.15.0
      Since Minecraft:
      1.20.3
    • FAILED_RELOAD

      public static final ResourcePackStatus FAILED_RELOAD
      Indicates that the client's resource manager reload failed.

      Terminal state.

      Since:
      4.15.0
      Since Minecraft:
      1.20.3
    • DISCARDED

      public static final ResourcePackStatus DISCARDED
      Indicates that this resource pack did not have issues, but was not applied due to a failure in another server resource pack.

      Terminal state.

      Since:
      4.15.0
      Since Minecraft:
      1.20.3
    • SUCCESSFULLY_LOADED

      public static final ResourcePackStatus SUCCESSFULLY_LOADED
      Indicates that the pack has successfully loaded and resource reloading is complete.

      Terminal state.

      Since:
      4.15.0
  • Method Details

    • values

      public static ResourcePackStatus[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static ResourcePackStatus valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • intermediate

      public boolean intermediate()
      Whether, after receiving this status, further status events might occur.
      Returns:
      the intermediate status
      Since:
      4.15.0