Enum Class PartyOperation

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

public enum PartyOperation extends Enum<PartyOperation>
組隊狀態變更的操作類型列舉,用於向客戶端廣播組隊封包時區分事件種類。

World.Party 靜態子層在處理加入、離隊、踢出、解散、隊長轉讓等事件後, 傳遞給封包建構器(tools.packet.PartyPacket),以決定填入封包的操作碼欄位。 SILENT_UPDATE 用於跨頻道狀態同步,LOG_ONOFF 用於成員上下線通知, CHANGE_LEADER_DC 用於隊長斷線時自動轉讓。

  • Enum Constant Details

  • Method Details

    • values

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