public static enum ResourcePackStatusEvent.ResourcePackStatus extends Enum<ResourcePackStatusEvent.ResourcePackStatus>
Enum Constant and Description |
---|
ACCEPTED
The client is attempting to download the pack.
|
DECLINED
The client declined to download the pack.
|
FAILED
The client failed to download the resource pack.
|
SUCCESSFULLY_LOADED
The pack URI was successfully loaded.
|
Modifier and Type | Method and Description |
---|---|
static ResourcePackStatusEvent.ResourcePackStatus |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ResourcePackStatusEvent.ResourcePackStatus[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Optional<Boolean> |
wasSuccessful()
Gets if this status indicates that the pack was successfully set.
|
public static final ResourcePackStatusEvent.ResourcePackStatus ACCEPTED
public static final ResourcePackStatusEvent.ResourcePackStatus DECLINED
public static final ResourcePackStatusEvent.ResourcePackStatus FAILED
In some client versions, such as 1.8.0, this may only be sent when
the resource pack URL does not end in .zip. Otherwise,
SUCCESSFULLY_LOADED
will be sent.
public static final ResourcePackStatusEvent.ResourcePackStatus SUCCESSFULLY_LOADED
public static ResourcePackStatusEvent.ResourcePackStatus[] values()
for (ResourcePackStatusEvent.ResourcePackStatus c : ResourcePackStatusEvent.ResourcePackStatus.values()) System.out.println(c);
public static ResourcePackStatusEvent.ResourcePackStatus valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null