Enum Class ClientboundPlayerInfoUpdatePacket.Action
java.lang.Object
java.lang.Enum<ClientboundPlayerInfoUpdatePacket.Action>
net.minecraft.network.protocol.game.ClientboundPlayerInfoUpdatePacket.Action
- All Implemented Interfaces:
Serializable, Comparable<ClientboundPlayerInfoUpdatePacket.Action>, Constable
- Enclosing class:
ClientboundPlayerInfoUpdatePacket
public static enum ClientboundPlayerInfoUpdatePacket.Action
extends Enum<ClientboundPlayerInfoUpdatePacket.Action>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfacestatic interfaceNested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final IntFunction<ClientboundPlayerInfoUpdatePacket.Action> private final intprivate final ClientboundPlayerInfoUpdatePacket.Action.Readerstatic final StreamCodec<io.netty.buffer.ByteBuf, ClientboundPlayerInfoUpdatePacket.Action> private final ClientboundPlayerInfoUpdatePacket.Action.Writer -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateAction(int id, ClientboundPlayerInfoUpdatePacket.Action.Reader reader, ClientboundPlayerInfoUpdatePacket.Action.Writer writer) -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ADD_PLAYER
-
INITIALIZE_CHAT
-
UPDATE_GAME_MODE
-
UPDATE_LISTED
-
UPDATE_LATENCY
-
UPDATE_DISPLAY_NAME
-
UPDATE_LIST_ORDER
-
UPDATE_HAT
-
-
Field Details
-
id
private final int id -
reader
-
writer
-
BY_ID
-
STREAM_CODEC
public static final StreamCodec<io.netty.buffer.ByteBuf, ClientboundPlayerInfoUpdatePacket.Action> STREAM_CODEC
-
-
Constructor Details
-
Action
private Action(int id, ClientboundPlayerInfoUpdatePacket.Action.Reader reader, ClientboundPlayerInfoUpdatePacket.Action.Writer writer)
-
-
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
-