Enum Class RequestState
- All Implemented Interfaces:
Serializable,Comparable<RequestState>,Constable
Enum used to describe the state of a Request.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionState for a request that has been assigned, yet it has not been started.State for a request that is being assigned.State for a request that has been cancelled.State for a request that has been completed.Default state for a not registered request.State used to indicate a truly failed request.State used to indicate that a request is cancelled overruled, yet processing is still continuing to ensure proper cleanup.State for a requests, who's resolving has been completed, but who's followups are still in processing stages.State for a request on which is being worked.State for a request when it has been forcefully fullfilled by a playerState used to indicate that this request has been received by the requester.State for a request that has been registered, yet not resolved.States for a request who's primary processing has been completed. -
Method Summary
Modifier and TypeMethodDescriptionstatic RequestStatedeserialize(net.minecraft.nbt.IntTag nbt) Method used to deserialize a RequestState from NBTstatic RequestStatedeserialize(net.minecraft.network.FriendlyByteBuf buffer) Method used to deserialize a RequestState from a packet buffernet.minecraft.nbt.IntTagMethod used to serialize a state to NBT.voidserialize(net.minecraft.network.FriendlyByteBuf buffer) Method used to serialize a state to a packet buffer.static RequestStateReturns the enum constant of this class with the specified name.static RequestState[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CREATED
Default state for a not registered request. -
REPORTED
State for a request that has been registered, yet not resolved. -
ASSIGNING
State for a request that is being assigned. -
ASSIGNED
State for a request that has been assigned, yet it has not been started. -
IN_PROGRESS
State for a request on which is being worked. -
RESOLVED
States for a request who's primary processing has been completed. Followup processing still needs to be determined. -
FOLLOWUP_IN_PROGRESS
State for a requests, who's resolving has been completed, but who's followups are still in processing stages. -
COMPLETED
State for a request that has been completed. -
OVERRULED
State for a request when it has been forcefully fullfilled by a player -
CANCELLED
State for a request that has been cancelled. -
RECEIVED
State used to indicate that this request has been received by the requester. -
FINALIZING
State used to indicate that a request is cancelled overruled, yet processing is still continuing to ensure proper cleanup. -
FAILED
State used to indicate a truly failed request.
-
-
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
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 nameNullPointerException- if the argument is null
-
deserialize
Method used to deserialize a RequestState from NBT- Parameters:
nbt- The nbt to deserialize from.- Returns:
- The RequestState that is stored in the given NBT.
-
serialize
public net.minecraft.nbt.IntTag serialize()Method used to serialize a state to NBT.- Returns:
- The NBT representation of the state.
-
deserialize
Method used to deserialize a RequestState from a packet buffer- Parameters:
buffer- The buffer to deserialize from.- Returns:
- The RequestState that is stored in the given NBT.
-
serialize
public void serialize(net.minecraft.network.FriendlyByteBuf buffer) Method used to serialize a state to a packet buffer.- Parameters:
buffer- The buffer to write to.
-