Class Hitbox
java.lang.Object
nl.sbdeveloper.vehiclesplus.api.vehicles.settings.impl.Hitbox
- All Implemented Interfaces:
Setting
The Hitbox setting.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondouble
The Y-positiondouble
The Z-position (when facing North)double
getWidth()
The X-position (when facing North)void
setHeight
(double height) The Y-positionvoid
setLength
(double length) The Z-position (when facing North)void
setWidth
(double width) The X-position (when facing North)toString()
-
Constructor Details
-
Hitbox
public Hitbox(double length, double width, double height) Creates a newHitbox
instance.- Parameters:
length
- The Z-position (when facing North)width
- The X-position (when facing North)height
- The Y-position
-
Hitbox
public Hitbox()
-
-
Method Details
-
toString
-
getLength
public double getLength()The Z-position (when facing North) -
getWidth
public double getWidth()The X-position (when facing North) -
getHeight
public double getHeight()The Y-position -
setLength
public void setLength(double length) The Z-position (when facing North) -
setWidth
public void setWidth(double width) The X-position (when facing North) -
setHeight
public void setHeight(double height) The Y-position
-