Enum MovementFlag

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<MovementFlag>

    public enum MovementFlag
    extends java.lang.Enum<MovementFlag>
    • Enum Constant Detail

      • BLOCK_MOVEMENT_NORTH_WEST

        public static final MovementFlag BLOCK_MOVEMENT_NORTH_WEST
      • BLOCK_MOVEMENT_NORTH

        public static final MovementFlag BLOCK_MOVEMENT_NORTH
      • BLOCK_MOVEMENT_NORTH_EAST

        public static final MovementFlag BLOCK_MOVEMENT_NORTH_EAST
      • BLOCK_MOVEMENT_EAST

        public static final MovementFlag BLOCK_MOVEMENT_EAST
      • BLOCK_MOVEMENT_SOUTH_EAST

        public static final MovementFlag BLOCK_MOVEMENT_SOUTH_EAST
      • BLOCK_MOVEMENT_SOUTH

        public static final MovementFlag BLOCK_MOVEMENT_SOUTH
      • BLOCK_MOVEMENT_SOUTH_WEST

        public static final MovementFlag BLOCK_MOVEMENT_SOUTH_WEST
      • BLOCK_MOVEMENT_WEST

        public static final MovementFlag BLOCK_MOVEMENT_WEST
      • BLOCK_MOVEMENT_OBJECT

        public static final MovementFlag BLOCK_MOVEMENT_OBJECT
      • BLOCK_MOVEMENT_FLOOR_DECORATION

        public static final MovementFlag BLOCK_MOVEMENT_FLOOR_DECORATION
      • BLOCK_MOVEMENT_FLOOR

        public static final MovementFlag BLOCK_MOVEMENT_FLOOR
      • BLOCK_MOVEMENT_FULL

        public static final MovementFlag BLOCK_MOVEMENT_FULL
    • Method Detail

      • values

        public static MovementFlag[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (MovementFlag c : MovementFlag.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static MovementFlag valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • getSetFlags

        public static java.util.Set<MovementFlag> getSetFlags​(int collisionData)
      • isValid

        public boolean isValid​(int collisionData)
      • getFlag

        public int getFlag()