public class MessageType
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static int[] |
getAllTypes(boolean includeJXClientType)
Returns all defined message types.
|
static int |
parseMessageSubtype(@NotNull java.lang.String str)
Parses a string into a message subtype.
|
static int |
parseMessageType(@NotNull java.lang.String str)
Parses a string into a message type.
|
static @NotNull java.lang.String |
toString(int type,
int subtype)
Returns a string representation of a message type.
|
public static final int MSG_TYPE_BOOK
public static final int MSG_TYPE_CARD
public static final int MSG_TYPE_PAPER
public static final int MSG_TYPE_SIGN
public static final int MSG_TYPE_MONUMENT
public static final int MSG_TYPE_DIALOG
public static final int MSG_TYPE_MOTD
public static final int MSG_TYPE_ADMIN
public static final int MSG_TYPE_SHOP
public static final int MSG_TYPE_COMMAND
public static final int MSG_TYPE_ATTRIBUTE
public static final int MSG_TYPE_SKILL
public static final int MSG_TYPE_APPLY
public static final int MSG_TYPE_ATTACK
public static final int MSG_TYPE_COMMUNICATION
public static final int MSG_TYPE_SPELL
public static final int MSG_TYPE_ITEM
public static final int MSG_TYPE_MISC
public static final int MSG_TYPE_VICTIM
public static final int MSG_TYPE_JXCLIENT
public static final int MSG_TYPE_CLIENT
public static final int MSG_SUBTYPE_NONE
public static final int MSG_SUBTYPE_BOOK_CLASP_1
public static final int MSG_SUBTYPE_BOOK_CLASP_2
public static final int MSG_SUBTYPE_BOOK_ELEGANT_1
public static final int MSG_SUBTYPE_BOOK_ELEGANT_2
public static final int MSG_SUBTYPE_BOOK_QUARTO_1
public static final int MSG_SUBTYPE_BOOK_QUARTO_2
public static final int MSG_SUBTYPE_BOOK_SPELL_EVOKER
public static final int MSG_SUBTYPE_BOOK_SPELL_PRAYER
public static final int MSG_SUBTYPE_BOOK_SPELL_PYRO
public static final int MSG_SUBTYPE_BOOK_SPELL_SORCERER
public static final int MSG_SUBTYPE_BOOK_SPELL_SUMMONER
public static final int MSG_SUBTYPE_CARD_SIMPLE_1
public static final int MSG_SUBTYPE_CARD_SIMPLE_2
public static final int MSG_SUBTYPE_CARD_SIMPLE_3
public static final int MSG_SUBTYPE_CARD_ELEGANT_1
public static final int MSG_SUBTYPE_CARD_ELEGANT_2
public static final int MSG_SUBTYPE_CARD_ELEGANT_3
public static final int MSG_SUBTYPE_CARD_STRANGE_1
public static final int MSG_SUBTYPE_CARD_STRANGE_2
public static final int MSG_SUBTYPE_CARD_STRANGE_3
public static final int MSG_SUBTYPE_CARD_MONEY_1
public static final int MSG_SUBTYPE_CARD_MONEY_2
public static final int MSG_SUBTYPE_CARD_MONEY_3
public static final int MSG_SUBTYPE_PAPER_NOTE_1
public static final int MSG_SUBTYPE_PAPER_NOTE_2
public static final int MSG_SUBTYPE_PAPER_NOTE_3
public static final int MSG_SUBTYPE_PAPER_LETTER_OLD_1
public static final int MSG_SUBTYPE_PAPER_LETTER_OLD_2
public static final int MSG_SUBTYPE_PAPER_LETTER_NEW_1
public static final int MSG_SUBTYPE_PAPER_LETTER_NEW_2
public static final int MSG_SUBTYPE_PAPER_ENVELOPE_1
public static final int MSG_SUBTYPE_PAPER_ENVELOPE_2
public static final int MSG_SUBTYPE_PAPER_SCROLL_OLD_1
public static final int MSG_SUBTYPE_PAPER_SCROLL_OLD_2
public static final int MSG_SUBTYPE_PAPER_SCROLL_NEW_1
public static final int MSG_SUBTYPE_PAPER_SCROLL_NEW_2
public static final int MSG_SUBTYPE_PAPER_SCROLL_MAGIC
public static final int MSG_SUBTYPE_SIGN_BASIC
public static final int MSG_SUBTYPE_SIGN_DIR_LEFT
public static final int MSG_SUBTYPE_SIGN_DIR_RIGHT
public static final int MSG_SUBTYPE_SIGN_DIR_BOTH
public static final int MSG_SUBTYPE_SIGN_MAGIC_MOUTH
public static final int MSG_SUBTYPE_MONUMENT_STONE_1
public static final int MSG_SUBTYPE_MONUMENT_STONE_2
public static final int MSG_SUBTYPE_MONUMENT_STONE_3
public static final int MSG_SUBTYPE_MONUMENT_STATUE_1
public static final int MSG_SUBTYPE_MONUMENT_STATUE_2
public static final int MSG_SUBTYPE_MONUMENT_STATUE_3
public static final int MSG_SUBTYPE_MONUMENT_GRAVESTONE_1
public static final int MSG_SUBTYPE_MONUMENT_GRAVESTONE_2
public static final int MSG_SUBTYPE_MONUMENT_GRAVESTONE_3
public static final int MSG_SUBTYPE_MONUMENT_WALL_1
public static final int MSG_SUBTYPE_MONUMENT_WALL_2
public static final int MSG_SUBTYPE_MONUMENT_WALL_3
public static final int MSG_SUBTYPE_DIALOG_NPC
public static final int MSG_SUBTYPE_DIALOG_ALTAR
public static final int MSG_SUBTYPE_DIALOG_MAGIC_EAR
public static final int MSG_SUBTYPE_ADMIN_RULES
public static final int MSG_SUBTYPE_ADMIN_NEWS
public static final int MSG_SUBTYPE_ADMIN_PLAYER
public static final int MSG_SUBTYPE_ADMIN_DM
public static final int MSG_SUBTYPE_ADMIN_HISCORE
public static final int MSG_SUBTYPE_ADMIN_LOADSAVE
public static final int MSG_SUBTYPE_ADMIN_LOGIN
public static final int MSG_SUBTYPE_ADMIN_VERSION
public static final int MSG_SUBTYPE_ADMIN_ERROR
public static final int MSG_SUBTYPE_SHOP_LISTING
public static final int MSG_SUBTYPE_SHOP_PAYMENT
public static final int MSG_SUBTYPE_SHOP_SELL
public static final int MSG_SUBTYPE_SHOP_MISC
public static final int MSG_SUBTYPE_COMMAND_WHO
public static final int MSG_SUBTYPE_COMMAND_MAPS
public static final int MSG_SUBTYPE_COMMAND_BODY
public static final int MSG_SUBTYPE_COMMAND_MALLOC
public static final int MSG_SUBTYPE_COMMAND_WEATHER
public static final int MSG_SUBTYPE_COMMAND_STATISTICS
public static final int MSG_SUBTYPE_COMMAND_CONFIG
public static final int MSG_SUBTYPE_COMMAND_INFO
public static final int MSG_SUBTYPE_COMMAND_QUESTS
public static final int MSG_SUBTYPE_COMMAND_DEBUG
public static final int MSG_SUBTYPE_COMMAND_ERROR
public static final int MSG_SUBTYPE_COMMAND_SUCCESS
public static final int MSG_SUBTYPE_COMMAND_FAILURE
public static final int MSG_SUBTYPE_COMMAND_EXAMINE
public static final int MSG_SUBTYPE_COMMAND_INVENTORY
public static final int MSG_SUBTYPE_COMMAND_HELP
public static final int MSG_SUBTYPE_COMMAND_DM
public static final int MSG_SUBTYPE_COMMAND_NEWPLAYER
public static final int MSG_SUBTYPE_ATTRIBUTE_ATTACKTYPE_GAIN
public static final int MSG_SUBTYPE_ATTRIBUTE_ATTACKTYPE_LOSS
public static final int MSG_SUBTYPE_ATTRIBUTE_PROTECTION_GAIN
public static final int MSG_SUBTYPE_ATTRIBUTE_PROTECTION_LOSS
public static final int MSG_SUBTYPE_ATTRIBUTE_MOVE
public static final int MSG_SUBTYPE_ATTRIBUTE_RACE
public static final int MSG_SUBTYPE_ATTRIBUTE_BAD_EFFECT_START
public static final int MSG_SUBTYPE_ATTRIBUTE_BAD_EFFECT_END
public static final int MSG_SUBTYPE_ATTRIBUTE_STAT_GAIN
public static final int MSG_SUBTYPE_ATTRIBUTE_STAT_LOSS
public static final int MSG_SUBTYPE_ATTRIBUTE_LEVEL_GAIN
public static final int MSG_SUBTYPE_ATTRIBUTE_LEVEL_LOSS
public static final int MSG_SUBTYPE_ATTRIBUTE_GOOD_EFFECT_START
public static final int MSG_SUBTYPE_ATTRIBUTE_GOOD_EFFECT_END
public static final int MSG_SUBTYPE_ATTRIBUTE_GOD
public static final int MSG_SUBTYPE_SKILL_MISSING
public static final int MSG_SUBTYPE_SKILL_ERROR
public static final int MSG_SUBTYPE_SKILL_SUCCESS
public static final int MSG_SUBTYPE_SKILL_FAILURE
public static final int MSG_SUBTYPE_SKILL_PRAY
public static final int MSG_SUBTYPE_SKILL_LIST
public static final int MSG_SUBTYPE_APPLY_ERROR
public static final int MSG_SUBTYPE_APPLY_UNAPPLY
public static final int MSG_SUBTYPE_APPLY_SUCCESS
public static final int MSG_SUBTYPE_APPLY_FAILURE
public static final int MSG_SUBTYPE_APPLY_CURSED
public static final int MSG_SUBTYPE_APPLY_TRAP
public static final int MSG_SUBTYPE_APPLY_BADBODY
public static final int MSG_SUBTYPE_APPLY_PROHIBITION
public static final int MSG_SUBTYPE_APPLY_BUILD
public static final int MSG_SUBTYPE_ATTACK_DID_HIT
public static final int MSG_SUBTYPE_ATTACK_PET_HIT
public static final int MSG_SUBTYPE_ATTACK_FUMBLE
public static final int MSG_SUBTYPE_ATTACK_DID_KILL
public static final int MSG_SUBTYPE_ATTACK_PET_DIED
public static final int MSG_SUBTYPE_ATTACK_NOKEY
public static final int MSG_SUBTYPE_ATTACK_NOATTACK
public static final int MSG_SUBTYPE_ATTACK_PUSHED
public static final int MSG_SUBTYPE_ATTACK_MISS
public static final int MSG_SUBTYPE_COMMUNICATION_RANDOM
public static final int MSG_SUBTYPE_COMMUNICATION_SAY
public static final int MSG_SUBTYPE_COMMUNICATION_ME
public static final int MSG_SUBTYPE_COMMUNICATION_TELL
public static final int MSG_SUBTYPE_COMMUNICATION_EMOTE
public static final int MSG_SUBTYPE_COMMUNICATION_PARTY
public static final int MSG_SUBTYPE_COMMUNICATION_SHOUT
public static final int MSG_SUBTYPE_COMMUNICATION_CHAT
public static final int MSG_SUBTYPE_SPELL_HEAL
public static final int MSG_SUBTYPE_SPELL_PET
public static final int MSG_SUBTYPE_SPELL_FAILURE
public static final int MSG_SUBTYPE_SPELL_END
public static final int MSG_SUBTYPE_SPELL_SUCCESS
public static final int MSG_SUBTYPE_SPELL_ERROR
public static final int MSG_SUBTYPE_SPELL_PERCEIVE_SELF
public static final int MSG_SUBTYPE_SPELL_TARGET
public static final int MSG_SUBTYPE_SPELL_INFO
public static final int MSG_SUBTYPE_ITEM_REMOVE
public static final int MSG_SUBTYPE_ITEM_ADD
public static final int MSG_SUBTYPE_ITEM_CHANGE
public static final int MSG_SUBTYPE_ITEM_INFO
public static final int MSG_SUBTYPE_VICTIM_SWAMP
public static final int MSG_SUBTYPE_VICTIM_WAS_HIT
public static final int MSG_SUBTYPE_VICTIM_STEAL
public static final int MSG_SUBTYPE_VICTIM_SPELL
public static final int MSG_SUBTYPE_VICTIM_DIED
public static final int MSG_SUBTYPE_VICTIM_WAS_PUSHED
public static final int MSG_SUBTYPE_CLIENT_CONFIG
public static final int MSG_SUBTYPE_CLIENT_SERVER
public static final int MSG_SUBTYPE_CLIENT_COMMAND
public static final int MSG_SUBTYPE_CLIENT_QUERY
public static final int MSG_SUBTYPE_CLIENT_DEBUG
public static final int MSG_SUBTYPE_CLIENT_NOTICE
public static final int MSG_SUBTYPE_CLIENT_METASERVER
public static final int MSG_SUBTYPE_CLIENT_SCRIPT
public static final int MSG_SUBTYPE_CLIENT_ERROR
public static final int MSG_SUBTYPE_JXCLIENT_QUERY
public static final int MSG_SUBTYPE_JXCLIENT_COMMAND
public static final int MSG_SUBTYPE_JXCLIENT_COMBOBOX
public static int[] getAllTypes(boolean includeJXClientType)
includeJXClientType
- whether to include the client-only "JXClient"
typepublic static int parseMessageType(@NotNull @NotNull java.lang.String str) throws UnknownMessageTypeException
str
- the string to parseUnknownMessageTypeException
- if the string is unknownpublic static int parseMessageSubtype(@NotNull @NotNull java.lang.String str) throws UnknownMessageTypeException
str
- the string to parseUnknownMessageTypeException
- if the string is unknown@NotNull public static @NotNull java.lang.String toString(int type, int subtype)
type
- the message typesubtype
- the message subtype