Enum Class MapleMapObjectType
- All Implemented Interfaces:
Serializable, Comparable<MapleMapObjectType>, Constable
列舉所有可存在於
MapleMap 上的地圖物件種類。
每個 MapleMapObject 子類別透過 MapleMapObject.getType() 回傳對應的列舉值,
供 MapleMap 依型別查詢(getMapObjectsInRange 等)與分派封包時識別物件類型。
目前定義的種類包含:
NPC、MONSTER、PLAYER— 生命體ITEM— 地圖掉落物(MapleMapItem)DOOR— 秘密之門或機械門(MechDoor)SUMMON— 召喚獸(MapleSummon)MIST— 地圖迷霧/毒霧(MapleMist)REACTOR— 反應爐(MapleReactor)SHOP、HIRED_MERCHANT、KITE、EXTRACTOR、FAMILIAR— 其他互動物件
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic MapleMapObjectTypeReturns the enum constant of this class with the specified name.static MapleMapObjectType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NPC
-
MONSTER
-
ITEM
-
PLAYER
-
DOOR
-
SUMMON
-
SHOP
-
MIST
-
REACTOR
-
EXTRACTOR
-
FAMILIAR
-
HIRED_MERCHANT
-
KITE
-
-
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
-