Enum Class PartyOperation
- All Implemented Interfaces:
Serializable, Comparable<PartyOperation>, Constable
組隊狀態變更的操作類型列舉,用於向客戶端廣播組隊封包時區分事件種類。
由 World.Party 靜態子層在處理加入、離隊、踢出、解散、隊長轉讓等事件後,
傳遞給封包建構器(tools.packet.PartyPacket),以決定填入封包的操作碼欄位。
SILENT_UPDATE 用於跨頻道狀態同步,LOG_ONOFF 用於成員上下線通知,
CHANGE_LEADER_DC 用於隊長斷線時自動轉讓。
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic PartyOperationReturns the enum constant of this class with the specified name.static PartyOperation[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
JOIN
-
LEAVE
-
EXPEL
-
DISBAND
-
SILENT_UPDATE
-
LOG_ONOFF
-
CHANGE_LEADER
-
CHANGE_LEADER_DC
-
-
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
-