Enum BlockFace

    • Enum Constant Detail

      • NORTH_EAST

        public static final BlockFace NORTH_EAST
      • NORTH_WEST

        public static final BlockFace NORTH_WEST
      • SOUTH_EAST

        public static final BlockFace SOUTH_EAST
      • SOUTH_WEST

        public static final BlockFace SOUTH_WEST
      • WEST_NORTH_WEST

        public static final BlockFace WEST_NORTH_WEST
      • NORTH_NORTH_WEST

        public static final BlockFace NORTH_NORTH_WEST
      • NORTH_NORTH_EAST

        public static final BlockFace NORTH_NORTH_EAST
      • EAST_NORTH_EAST

        public static final BlockFace EAST_NORTH_EAST
      • EAST_SOUTH_EAST

        public static final BlockFace EAST_SOUTH_EAST
      • SOUTH_SOUTH_EAST

        public static final BlockFace SOUTH_SOUTH_EAST
      • SOUTH_SOUTH_WEST

        public static final BlockFace SOUTH_SOUTH_WEST
      • WEST_SOUTH_WEST

        public static final BlockFace WEST_SOUTH_WEST
    • Method Detail

      • values

        public static BlockFace[] 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 (BlockFace c : BlockFace.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static BlockFace valueOf​(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:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getModX

        public int getModX()
        Get the amount of X-coordinates to modify to get the represented block
        Returns:
        Amount of X-coordinates to modify
      • getModY

        public int getModY()
        Get the amount of Y-coordinates to modify to get the represented block
        Returns:
        Amount of Y-coordinates to modify
      • getModZ

        public int getModZ()
        Get the amount of Z-coordinates to modify to get the represented block
        Returns:
        Amount of Z-coordinates to modify
      • getDirection

        @NotNull
        public Vector getDirection()
        Gets the normal vector corresponding to this block face.
        Returns:
        the normal vector
      • getOppositeFace

        @NotNull
        public BlockFace getOppositeFace()