Enum Class ReportType

java.lang.Object
java.lang.Enum<ReportType>
client.anticheat.ReportType
All Implemented Interfaces:
Serializable, Comparable<ReportType>, Constable

public enum ReportType extends Enum<ReportType>
玩家檢舉功能所支援的違規類型列舉。

每個常數攜帶一個數字索引(i)與一個字串識別碼(theId), 分別用於封包數值對映與文字解析:

目前定義的類型包含:外掛(Hacking)、機器人(Botting)、 詐騙(Scamming)、假冒 GM(FakeGM)及廣告(Advertising)。 由 CharacterAnticheatManager 的檢舉統計方法(addReport 等) 作為索引鍵使用。

  • Enum Constant Details

    • Hacking

      public static final ReportType Hacking
    • Botting

      public static final ReportType Botting
    • Scamming

      public static final ReportType Scamming
    • FakeGM

      public static final ReportType FakeGM
    • Advertising

      public static final ReportType Advertising
  • Field Details

    • i

      public byte i
    • theId

      public String theId
  • Method Details

    • values

      public static ReportType[] 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 ReportType 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
    • getById

      public static ReportType getById(int z)
    • getByString

      public static ReportType getByString(String z)