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 TypeMethodDescriptiondoubleThe Y-positiondoubleThe Z-position (when facing North)doublegetWidth()The X-position (when facing North)voidsetHeight(double height) The Y-positionvoidsetLength(double length) The Z-position (when facing North)voidsetWidth(double width) The X-position (when facing North)toString()
-
Constructor Details
-
Hitbox
public Hitbox(double length, double width, double height) Creates a newHitboxinstance.- 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
-