Enum Class PacketTask
- All Implemented Interfaces:
Serializable, Comparable<PacketTask>, Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal booleanExchange name author and desc datafinal bytefinal booleanTrue if task is player emote play relatedfinal booleanIt has to do something with a specific player -
Method Summary
Modifier and TypeMethodDescriptionstatic PacketTaskgetTaskFromID(byte b) static PacketTaskReturns the enum constant of this class with the specified name.static PacketTask[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
-
STREAM
-
CONFIG
-
STOP
-
FILE
-
-
Field Details
-
id
public final byte id -
isEmoteStream
public final boolean isEmoteStreamTrue if task is player emote play related -
exchangeHeader
public final boolean exchangeHeaderExchange name author and desc data -
playerBound
public final boolean playerBoundIt has to do something with a specific player
-
-
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
-
getTaskFromID
-