Class HeightLimit
java.lang.Object
nl.sbdeveloper.vehiclesplus.api.vehicles.settings.impl.HeightLimit
- All Implemented Interfaces:
Setting
The min and max height settings.
-
Constructor Summary
ConstructorsConstructorDescriptionHeightLimit
(double minHeight, double maxHeight) Creates a newHeightLimit
instance. -
Method Summary
Modifier and TypeMethodDescriptiondouble
The maximal height this vehicle can move.double
The minimal height this vehicle can move.void
setMaxHeight
(double maxHeight) The maximal height this vehicle can move.void
setMinHeight
(double minHeight) The minimal height this vehicle can move.toString()
-
Constructor Details
-
HeightLimit
public HeightLimit(double minHeight, double maxHeight) Creates a newHeightLimit
instance.- Parameters:
minHeight
- The minimal height this vehicle can move.maxHeight
- The maximal height this vehicle can move.
-
HeightLimit
public HeightLimit()
-
-
Method Details
-
toString
-
getMinHeight
public double getMinHeight()The minimal height this vehicle can move. -
getMaxHeight
public double getMaxHeight()The maximal height this vehicle can move. -
setMinHeight
public void setMinHeight(double minHeight) The minimal height this vehicle can move. -
setMaxHeight
public void setMaxHeight(double maxHeight) The maximal height this vehicle can move.
-