public static enum DisconnectPacket.Reason extends Enum<DisconnectPacket.Reason>
| Enum Constant and Description |
|---|
GENERIC |
INCOMPATIBLE_PROTOCOL |
| Modifier and Type | Method and Description |
|---|---|
static DisconnectPacket.Reason |
byId(byte id) |
static DisconnectPacket.Reason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static DisconnectPacket.Reason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DisconnectPacket.Reason GENERIC
public static final DisconnectPacket.Reason INCOMPATIBLE_PROTOCOL
public static DisconnectPacket.Reason[] values()
for (DisconnectPacket.Reason c : DisconnectPacket.Reason.values()) System.out.println(c);
public static DisconnectPacket.Reason 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 nullpublic static DisconnectPacket.Reason byId(byte id)
Copyright © 2018–2019. All rights reserved.