Enum Class MapleGuildResponse

java.lang.Object
java.lang.Enum<MapleGuildResponse>
handling.world.guild.MapleGuildResponse
All Implemented Interfaces:
Serializable, Comparable<MapleGuildResponse>, Constable

public enum MapleGuildResponse extends Enum<MapleGuildResponse>
公會操作失敗時回傳給客戶端的錯誤代碼列舉。

每個常數持有一個協定數值(value),對應客戶端 v149 的公會錯誤訊息代碼:

  • ALREADY_IN_GUILD0x2E)— 角色已加入其他公會。
  • NOT_IN_CHANNEL0x30)— 目標角色不在同一頻道。
  • NOT_IN_GUILD0x33)— 角色目前未隸屬任何公會。

getPacket() 委由 GuildPacket.genericGuildMessage(byte) 組裝並回傳對應封包位元組。

  • Enum Constant Details

  • Method Details

    • values

      public static MapleGuildResponse[] 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

      public static MapleGuildResponse valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getValue

      public int getValue()
    • getPacket

      public byte[] getPacket()