Enum Class ResourcePackStatusEvent.ResourcePackStatus
- All Implemented Interfaces:
- Enclosing interface:
public static enum ResourcePackStatusEvent.ResourcePackStatus extends Enum<ResourcePackStatusEvent.ResourcePackStatus>
The different possible responses the client can have.
Nested Class Summary
Enum Constant SummaryEnum ConstantDescriptionThe client is attempting to download the pack.The client declined to download the pack.The client failed to download the resource pack.The pack URI was successfully loaded.
Method SummaryModifier and TypeMethodDescription
String name)(Returns the enum constant of this class with the specified name.
()Returns an array containing the constants of this enum class, in the order they are declared.
()Gets if this status indicates that the pack was successfully set.
Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Enum Constant Details
ACCEPTEDpublic static final ResourcePackStatusEvent.ResourcePackStatus ACCEPTEDThe client is attempting to download the pack.
DECLINEDpublic static final ResourcePackStatusEvent.ResourcePackStatus DECLINEDThe client declined to download the pack.
FAILEDpublic static final ResourcePackStatusEvent.ResourcePackStatus FAILEDThe client failed to download the resource pack.
In some client versions, such as 1.8.0, this may only be sent when the resource pack URL does not end in
SUCCESSFULLY_LOADEDwill be sent.
SUCCESSFULLY_LOADEDpublic static final ResourcePackStatusEvent.ResourcePackStatus SUCCESSFULLY_LOADEDThe pack URI was successfully loaded. This does not mean that pack was loaded, as the vanilla client sends this even when encountering a 404 or similar.
valuespublic static ResourcePackStatusEvent.ResourcePackStatus values()Returns an array containing the constants of this enum class, in the order they are declared.
- an array containing the constants of this enum class, in the order they are declared
valueOfReturns 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.)
wasSuccessfulGets if this status indicates that the pack was successfully set.
- true if it was successful, false if it was not, and Optional.empty() if it cannot be determined at this time.