Module gomint.api

Enum Facing

    • Enum Constant Detail

      • SOUTH

        public static final Facing SOUTH
      • NORTH

        public static final Facing NORTH
      • WEST

        public static final Facing WEST
      • EAST

        public static final Facing EAST
    • Method Detail

      • values

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

        public static Facing 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
      • opposite

        public Facing opposite()
        Get the opposite face
        Returns:
        opposite face
      • toBlockFace

        public BlockFace toBlockFace()
        Get the block face enum value for this facing value
        Returns:
        block face value (3d) for this facing (2d)