Enum Class FieldLimitType

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

public enum FieldLimitType extends Enum<FieldLimitType>
地圖場地限制旗標的列舉,對應 WZ 資料中 fieldLimit 位元欄位。

每個列舉值持有一個位元遮罩(int),可透過 check(fieldlimit) 方法檢查指定地圖的 fieldLimit 值是否啟用該限制。 常見限制包含禁止跳躍(Jump)、禁止移動技能(MovementSkills)、 禁止神秘之門(MysticDoor)、禁止換頻(ChannelSwitch)等; 由 MapleMap 在玩家嘗試使用對應功能時呼叫以決定是否阻擋。

  • Enum Constant Details

  • Method Details

    • values

      public static FieldLimitType[] 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 FieldLimitType 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
    • getValue

      public final int getValue()
    • check

      public final boolean check(int fieldlimit)