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 AUTOTYPERAn autotyper message from a player.BROADCASTA game broadcast.CHALREQ_CLANCHATChallenge offer for the clan tabCHALREQ_FRIENDSCHATA message received when someone sends a friends chat challenge offer.CHALREQ_TRADEA message received when somebody sends a duel offer.CLAN_CHATA chat message in a clan chat.CLAN_CREATION_INVITATIONClan creation invitation.CLAN_GIM_CHATCLAN_GIM_FORM_GROUPCLAN_GIM_GROUP_WITHCLAN_GIM_MESSAGECLAN_GUEST_CHATA chat message in the guest clan chat.CLAN_GUEST_MESSAGEA system message in the guest clan chat.CLAN_MESSAGEA system message in a clan chat.CONSOLEA game message.DIALOGChat type for npc and player dialogDIDYOUKNOWDid you know?-esENGINEA message that the game engine sends.FRIENDNOTIFICATIONAdding player to friend list.FRIENDSCHATA message received in friends chat.FRIENDSCHATNOTIFICATIONA message received with information about the current friends chat.GAMEMESSAGEA normal game message.IGNORENOTIFICATIONAdding player to ignore list.ITEM_EXAMINEExamine item description.LOGINLOGOUTNOTIFICATIONA message received when a friend logs in or out.MESBOXChat type for dialog with a graphic/objectMODAUTOTYPERAn autotyper message from a mod.MODCHATA message in the public chat from a moderatorMODPRIVATECHATA private message received from a moderator.NPC_EXAMINEExamine NPC description.NPC_SAYChat type for some npcs overhead textOBJECT_EXAMINEExamine object description.PLAYERRELATEDA message that is relating to the player.PRIVATECHATA private message from another player.PRIVATECHATOUTA private message sent to another player.PUBLICCHATA message in the public chat.SNAPSHOTFEEDBACKAn abuse report submitted.SPAMA message that was filtered.TENSECTIMEOUTA message that times out after 10 seconds.TRADEA message received when completing a trade or a duelTRADE_SENTA trade request being sent.TRADEREQA message received when somebody sends a trade offer.UNKNOWNAn unknown message type.WELCOMEThe "Welcome to RuneScape" message
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetType()static ChatMessageTypeof(int type)Utility method that maps the type value to its respectiveChatMessageTypevalue.static ChatMessageTypevalueOf(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
-
DIDYOUKNOW
public static final ChatMessageType DIDYOUKNOW
Did you know?-es
-
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 respectiveChatMessageTypevalue.- Parameters:
type- the raw type- Returns:
- appropriate message type, or
UNKNOWN
-
getType
public int getType()
-
-