Enum Class MapleGuildResponse
- All Implemented Interfaces:
Serializable, Comparable<MapleGuildResponse>, Constable
公會操作失敗時回傳給客戶端的錯誤代碼列舉。
每個常數持有一個協定數值(value),對應客戶端 v149 的公會錯誤訊息代碼:
ALREADY_IN_GUILD(0x2E)— 角色已加入其他公會。NOT_IN_CHANNEL(0x30)— 目標角色不在同一頻道。NOT_IN_GUILD(0x33)— 角色目前未隸屬任何公會。
getPacket() 委由 GuildPacket.genericGuildMessage(byte) 組裝並回傳對應封包位元組。
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionbyte[]intgetValue()static MapleGuildResponseReturns the enum constant of this class with the specified name.static MapleGuildResponse[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ALREADY_IN_GUILD
-
NOT_IN_CHANNEL
-
NOT_IN_GUILD
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
public int getValue() -
getPacket
public byte[] getPacket()
-