public static enum Message.MessageType extends java.lang.Enum<Message.MessageType>
Enum Constant and Description |
---|
AUTO_CHAT |
CLAN_CHAT |
CLAN_CHAT_INFO |
DUEL |
EXAMINE_ITEM |
EXAMINE_NPC |
EXAMINE_OBJECT |
FILTERED |
GAME |
PLAYER |
RECEIVE_TRADE |
SERVER |
TRADE_RECEIVED |
TRADE_SENT |
Modifier and Type | Method and Description |
---|---|
static Message.MessageType |
forId(int id)
Gets the
Message.MessageType for a given id |
int |
getId()
Gets the id of the message type
|
static Message.MessageType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Message.MessageType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Message.MessageType GAME
public static final Message.MessageType PLAYER
public static final Message.MessageType TRADE_RECEIVED
public static final Message.MessageType CLAN_CHAT
public static final Message.MessageType CLAN_CHAT_INFO
public static final Message.MessageType TRADE_SENT
public static final Message.MessageType EXAMINE_ITEM
public static final Message.MessageType EXAMINE_NPC
public static final Message.MessageType EXAMINE_OBJECT
public static final Message.MessageType AUTO_CHAT
public static final Message.MessageType SERVER
public static final Message.MessageType RECEIVE_TRADE
public static final Message.MessageType DUEL
public static final Message.MessageType FILTERED
public static Message.MessageType[] values()
for (Message.MessageType c : Message.MessageType.values()) System.out.println(c);
public static Message.MessageType valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getId()
public static Message.MessageType forId(int id)
Message.MessageType
for a given idid
- the id of the Message.MessageType
Message.MessageType
for a given id