java.lang.Object
java.lang.Enum<HitboxSide>
nl.sbdeveloper.vehiclesplus.api.vehicles.collision.HitboxSide
All Implemented Interfaces:
Serializable, Comparable<HitboxSide>

public enum HitboxSide extends Enum<HitboxSide>
The sides of the hitbox
  • Enum Constant Details

    • FRONT

      public static final HitboxSide FRONT
      The front side of the hitbox
    • BACK

      public static final HitboxSide BACK
      The back side of the hitbox
    • LEFT

      public static final HitboxSide LEFT
      The left side of the hitbox
    • TOP

      public static final HitboxSide TOP
      The top side of the hitbox
    • BOTTOM

      public static final HitboxSide BOTTOM
      The bottom side of the hitbox
  • Method Details

    • values

      public static HitboxSide[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static HitboxSide 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