Enum Class ReportType
- All Implemented Interfaces:
Serializable, Comparable<ReportType>, Constable
玩家檢舉功能所支援的違規類型列舉。
每個常數攜帶一個數字索引(i)與一個字串識別碼(theId),
分別用於封包數值對映與文字解析:
getById(int)依索引查找對應類型,供封包解碼使用。getByString(String)以字串包含比對查找,供指令或日誌解析使用。
目前定義的類型包含:外掛(Hacking)、機器人(Botting)、
詐騙(Scamming)、假冒 GM(FakeGM)及廣告(Advertising)。
由 CharacterAnticheatManager 的檢舉統計方法(addReport 等)
作為索引鍵使用。
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic ReportTypegetById(int z) static ReportTypestatic ReportTypeReturns the enum constant of this class with the specified name.static ReportType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Hacking
-
Botting
-
Scamming
-
FakeGM
-
Advertising
-
-
Field Details
-
i
public byte i -
theId
-
-
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
-
getById
-
getByString
-