Enum Class MapleEventType

java.lang.Object
java.lang.Enum<MapleEventType>
server.events.MapleEventType
All Implemented Interfaces:
Serializable, Comparable<MapleEventType>, Constable

public enum MapleEventType extends Enum<MapleEventType>
伺服器內建小遊戲事件的列舉型別,每個值對應一組活動地圖 ID。

各列舉常數的 mapids 陣列記錄該事件使用的地圖(按進場順序排列):

  • 農夫的樂趣(109080000)、CokePlay(109080010):單地圖農場類活動。
  • 障礙競走(109040000–109040004):五關障礙賽。
  • 向上攀升(109030001–109030003):三層向上爬升。
  • 選邊站(109020001):OX 問答選邊站。
  • Survival(809040000–809040100):生存挑戰(對應 MapleSurvival/MapleOla)。
  • 滾雪球(109060000):滾雪球對抗賽(對應 MapleSnowball)。

本列舉由 MapleEventhandling.channel.ChannelServer 及 GM 指令 用於查詢、排程與啟動對應的 MapleEvent 子類別實例。 getByString(String) 支援不區分大小寫的名稱查詢。

  • Enum Constant Details

  • Field Details

    • mapids

      public int[] mapids
  • Method Details

    • values

      public static MapleEventType[] 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 MapleEventType 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
    • getByString

      public static final MapleEventType getByString(String splitted)