java.lang.Object
nl.sbdeveloper.vehiclesplus.api.vehicles.collision.HitboxPoint

public class HitboxPoint extends Object
  • Constructor Details

    • HitboxPoint

      public HitboxPoint(org.bukkit.util.Vector offset, HitboxSide side)
      Creates a new HitboxPoint instance.
      Parameters:
      offset - The offset from the center of the hitbox
      side - The side of the hitbox this point is on
  • Method Details

    • toLocation

      public org.bukkit.Location toLocation(org.bukkit.Location center)
      Convert this point to a location relative to the center
      Parameters:
      center - center to offset
      Returns:
      offset applied location
    • getOffset

      public org.bukkit.util.Vector getOffset()
      The offset from the center of the hitbox
    • getSide

      public HitboxSide getSide()
      The side of the hitbox this point is on