Package net.runelite.api
Enum ChatMessageType
- java.lang.Object
-
- java.lang.Enum<ChatMessageType>
-
- net.runelite.api.ChatMessageType
-
- All Implemented Interfaces:
Serializable
,Comparable<ChatMessageType>
public enum ChatMessageType extends Enum<ChatMessageType>
Enumeration of message types that can be received in the chat.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description AUTOTYPER
An autotyper message from a player.BROADCAST
A game broadcast.CHALREQ_CLANCHAT
Challenge offer for the clan tabCHALREQ_FRIENDSCHAT
A message received when someone sends a friends chat challenge offer.CHALREQ_TRADE
A message received when somebody sends a duel offer.CLAN_CHAT
A chat message in a clan chat.CLAN_CREATION_INVITATION
Clan creation invitation.CLAN_GIM_CHAT
CLAN_GIM_FORM_GROUP
CLAN_GIM_GROUP_WITH
CLAN_GIM_MESSAGE
CLAN_GUEST_CHAT
A chat message in the guest clan chat.CLAN_GUEST_MESSAGE
A system message in the guest clan chat.CLAN_MESSAGE
A system message in a clan chat.CONSOLE
A game message.DIALOG
Chat type for npc and player dialogENGINE
A message that the game engine sends.FRIENDNOTIFICATION
Adding player to friend list.FRIENDSCHAT
A message received in friends chat.FRIENDSCHATNOTIFICATION
A message received with information about the current friends chat.GAMEMESSAGE
A normal game message.IGNORENOTIFICATION
Adding player to ignore list.ITEM_EXAMINE
Examine item description.LOGINLOGOUTNOTIFICATION
A message received when a friend logs in or out.MESBOX
Chat type for dialog with a graphic/objectMODAUTOTYPER
An autotyper message from a mod.MODCHAT
A message in the public chat from a moderatorMODPRIVATECHAT
A private message received from a moderator.NPC_EXAMINE
Examine NPC description.NPC_SAY
Chat type for some npcs overhead textOBJECT_EXAMINE
Examine object description.PLAYERRELATED
A message that is relating to the player.PRIVATECHAT
A private message from another player.PRIVATECHATOUT
A private message sent to another player.PUBLICCHAT
A message in the public chat.SNAPSHOTFEEDBACK
An abuse report submitted.SPAM
A message that was filtered.TENSECTIMEOUT
A message that times out after 10 seconds.TRADE
A message received when completing a trade or a duelTRADE_SENT
A trade request being sent.TRADEREQ
A message received when somebody sends a trade offer.UNKNOWN
An unknown message type.WELCOME
The "Welcome to RuneScape" message
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getType()
static ChatMessageType
of(int type)
Utility method that maps the type value to its respectiveChatMessageType
value.static ChatMessageType
valueOf(String name)
Returns the enum constant of this type with the specified name.static ChatMessageType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
GAMEMESSAGE
public static final ChatMessageType GAMEMESSAGE
A normal game message.
-
MODCHAT
public static final ChatMessageType MODCHAT
A message in the public chat from a moderator
-
PUBLICCHAT
public static final ChatMessageType PUBLICCHAT
A message in the public chat.
-
PRIVATECHAT
public static final ChatMessageType PRIVATECHAT
A private message from another player.
-
ENGINE
public static final ChatMessageType ENGINE
A message that the game engine sends.
-
LOGINLOGOUTNOTIFICATION
public static final ChatMessageType LOGINLOGOUTNOTIFICATION
A message received when a friend logs in or out.
-
PRIVATECHATOUT
public static final ChatMessageType PRIVATECHATOUT
A private message sent to another player.
-
MODPRIVATECHAT
public static final ChatMessageType MODPRIVATECHAT
A private message received from a moderator.
-
FRIENDSCHAT
public static final ChatMessageType FRIENDSCHAT
A message received in friends chat.
-
FRIENDSCHATNOTIFICATION
public static final ChatMessageType FRIENDSCHATNOTIFICATION
A message received with information about the current friends chat.
-
TRADE_SENT
public static final ChatMessageType TRADE_SENT
A trade request being sent.
-
BROADCAST
public static final ChatMessageType BROADCAST
A game broadcast.
-
SNAPSHOTFEEDBACK
public static final ChatMessageType SNAPSHOTFEEDBACK
An abuse report submitted.
-
ITEM_EXAMINE
public static final ChatMessageType ITEM_EXAMINE
Examine item description.
-
NPC_EXAMINE
public static final ChatMessageType NPC_EXAMINE
Examine NPC description.
-
OBJECT_EXAMINE
public static final ChatMessageType OBJECT_EXAMINE
Examine object description.
-
FRIENDNOTIFICATION
public static final ChatMessageType FRIENDNOTIFICATION
Adding player to friend list.
-
IGNORENOTIFICATION
public static final ChatMessageType IGNORENOTIFICATION
Adding player to ignore list.
-
CLAN_CHAT
public static final ChatMessageType CLAN_CHAT
A chat message in a clan chat.
-
CLAN_MESSAGE
public static final ChatMessageType CLAN_MESSAGE
A system message in a clan chat.
-
CLAN_GUEST_CHAT
public static final ChatMessageType CLAN_GUEST_CHAT
A chat message in the guest clan chat.
-
CLAN_GUEST_MESSAGE
public static final ChatMessageType CLAN_GUEST_MESSAGE
A system message in the guest clan chat.
-
AUTOTYPER
public static final ChatMessageType AUTOTYPER
An autotyper message from a player.
-
MODAUTOTYPER
public static final ChatMessageType MODAUTOTYPER
An autotyper message from a mod.
-
CONSOLE
public static final ChatMessageType CONSOLE
A game message. (ie. when a setting is changed)
-
TRADEREQ
public static final ChatMessageType TRADEREQ
A message received when somebody sends a trade offer.
-
TRADE
public static final ChatMessageType TRADE
A message received when completing a trade or a duel
-
CHALREQ_TRADE
public static final ChatMessageType CHALREQ_TRADE
A message received when somebody sends a duel offer.
-
CHALREQ_FRIENDSCHAT
public static final ChatMessageType CHALREQ_FRIENDSCHAT
A message received when someone sends a friends chat challenge offer.
-
SPAM
public static final ChatMessageType SPAM
A message that was filtered.
-
PLAYERRELATED
public static final ChatMessageType PLAYERRELATED
A message that is relating to the player.
-
TENSECTIMEOUT
public static final ChatMessageType TENSECTIMEOUT
A message that times out after 10 seconds.
-
WELCOME
public static final ChatMessageType WELCOME
The "Welcome to RuneScape" message
-
CLAN_CREATION_INVITATION
public static final ChatMessageType CLAN_CREATION_INVITATION
Clan creation invitation.
-
CHALREQ_CLANCHAT
public static final ChatMessageType CHALREQ_CLANCHAT
Challenge offer for the clan tab
-
CLAN_GIM_FORM_GROUP
public static final ChatMessageType CLAN_GIM_FORM_GROUP
-
CLAN_GIM_GROUP_WITH
public static final ChatMessageType CLAN_GIM_GROUP_WITH
-
CLAN_GIM_CHAT
public static final ChatMessageType CLAN_GIM_CHAT
-
CLAN_GIM_MESSAGE
public static final ChatMessageType CLAN_GIM_MESSAGE
-
DIALOG
public static final ChatMessageType DIALOG
Chat type for npc and player dialog
-
MESBOX
public static final ChatMessageType MESBOX
Chat type for dialog with a graphic/object
-
NPC_SAY
public static final ChatMessageType NPC_SAY
Chat type for some npcs overhead text
-
UNKNOWN
public static final ChatMessageType UNKNOWN
An unknown message type.
-
-
Method Detail
-
values
public static ChatMessageType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ChatMessageType c : ChatMessageType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ChatMessageType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException
- if the argument is null
-
of
public static ChatMessageType of(int type)
Utility method that maps the type value to its respectiveChatMessageType
value.- Parameters:
type
- the raw type- Returns:
- appropriate message type, or
UNKNOWN
-
getType
public int getType()
-
-