Package net.kyori.adventure.resource
Enum ResourcePackStatus
- All Implemented Interfaces:
Serializable
,Comparable<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 Summary
Enum ConstantDescriptionIndicates that the user has accepted download.Indicates that the user has declined a pack.Indicates that this resource pack did not have issues, but was not applied due to a failure in another server resource pack.Indicates that the resource pack has been successfully downloaded.Indicates that the download failed for some other reason.Indicates that the client's resource manager reload failed.Indicates that the provided pack URL could not be parsed.Indicates that the pack has successfully loaded and resource reloading is complete. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Whether, after receiving this status, further status events might occur.static ResourcePackStatus
Returns the enum constant of this type with the specified name.static ResourcePackStatus[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
ACCEPTED
Indicates that the user has accepted download.Next states:
FAILED_DOWNLOAD
,DOWNLOADED
- Since:
- 4.15.0
-
DECLINED
Indicates that the user has declined a pack.Terminal state.
- Since:
- 4.15.0
-
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
Indicates that the download failed for some other reason.Terminal state.
- Since:
- 4.15.0
-
DOWNLOADED
Indicates that the resource pack has been successfully downloaded.Next states:
FAILED_RELOAD
,DISCARDED
, orSUCCESSFULLY_LOADED
- Since:
- 4.15.0
- Since Minecraft:
- 1.20.3
-
FAILED_RELOAD
Indicates that the client's resource manager reload failed.Terminal state.
- Since:
- 4.15.0
- Since Minecraft:
- 1.20.3
-
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
Indicates that the pack has successfully loaded and resource reloading is complete.Terminal state.
- Since:
- 4.15.0
-
-
Method Details
-
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
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 nameNullPointerException
- 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
-