public interface Boat extends Entity
Modifier and Type | Method and Description |
---|---|
boolean |
canMoveOnLand()
Gets whether or not the boat is able to
move freely on land.
|
double |
getMaxSpeed()
Gets the maximum speed that this boat is
allowed to travel at.
|
double |
getOccupiedDeceleration()
Gets the rate at which occupied boats decelerate.
|
double |
getUnoccupiedDeceleration()
Gets the rate at which unoccupied boats decelerate.
|
boolean |
isInWater()
Gets whether this boat is currently in
water.
|
void |
setMaxSpeed(double maxSpeed)
Sets the maximum speed that this boat is
allowed to travel at.
|
void |
setMoveOnLand(boolean moveOnLand)
Gets whether or not the boat is able to
move freely on land.
|
void |
setOccupiedDeceleration(double occupiedDeceleration)
Sets the rate at which occupied boats decelerate.
|
void |
setUnoccupiedDeceleration(double unoccupiedDeceleration)
Sets the rate at which unoccupied boats decelerate.
|
createSnapshot, damage, getLocation, getRotation, getScale, getTransform, getType, getWorld, isLoaded, isOnGround, isRemoved, remove, setLocation, setLocationAndRotation, setLocationAndRotation, setLocationAndRotationSafely, setLocationAndRotationSafely, setLocationSafely, setRotation, setScale, setTransform, transferToWorld, transferToWorld
getUniqueId
getProperties, getProperty, setRawData, validateRawData
toContainer
boolean isInWater()
double getMaxSpeed()
The Default value is 0.4.
void setMaxSpeed(double maxSpeed)
The Default value is 0.4.
maxSpeed
- The new max speedboolean canMoveOnLand()
void setMoveOnLand(boolean moveOnLand)
moveOnLand
- If the boat can move on landdouble getOccupiedDeceleration()
void setOccupiedDeceleration(double occupiedDeceleration)
occupiedDeceleration
- The new occupied deceleration ratedouble getUnoccupiedDeceleration()
void setUnoccupiedDeceleration(double unoccupiedDeceleration)
unoccupiedDeceleration
- The new unoccupied deceleration rate