Enum Class MapleEventType
- All Implemented Interfaces:
Serializable, Comparable<MapleEventType>, Constable
伺服器內建小遊戲事件的列舉型別,每個值對應一組活動地圖 ID。
各列舉常數的 mapids 陣列記錄該事件使用的地圖(按進場順序排列):
農夫的樂趣(109080000)、CokePlay(109080010):單地圖農場類活動。障礙競走(109040000–109040004):五關障礙賽。向上攀升(109030001–109030003):三層向上爬升。選邊站(109020001):OX 問答選邊站。Survival(809040000–809040100):生存挑戰(對應MapleSurvival/MapleOla)。滾雪球(109060000):滾雪球對抗賽(對應MapleSnowball)。
本列舉由 MapleEvent、handling.channel.ChannelServer 及 GM 指令
用於查詢、排程與啟動對應的 MapleEvent 子類別實例。
getByString(String) 支援不區分大小寫的名稱查詢。
-
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 final MapleEventTypegetByString(String splitted) static MapleEventTypeReturns the enum constant of this class with the specified name.static MapleEventType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
農夫的樂趣
-
CokePlay
-
障礙競走
-
向上攀升
-
選邊站
-
Survival
-
滾雪球
-
-
Field Details
-
mapids
public int[] mapids
-
-
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
-
getByString
-