Class HitboxPoint
java.lang.Object
nl.sbdeveloper.vehiclesplus.api.vehicles.collision.HitboxPoint
-
Constructor Summary
ConstructorsConstructorDescriptionHitboxPoint
(org.bukkit.util.Vector offset, HitboxSide side) Creates a newHitboxPoint
instance. -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.util.Vector
The offset from the center of the hitboxgetSide()
The side of the hitbox this point is onorg.bukkit.Location
toLocation
(org.bukkit.Location center) Convert this point to a location relative to the center
-
Constructor Details
-
HitboxPoint
Creates a newHitboxPoint
instance.- Parameters:
offset
- The offset from the center of the hitboxside
- 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
The side of the hitbox this point is on
-