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. 
 | 
addPassenger, canSee, clearPassengers, createArchetype, createSnapshot, damage, getBaseVehicle, getBoundingBox, getCreator, getNearbyEntities, getNearbyEntities, getNotifier, getPassengers, getRandom, getRotation, getScale, getTransform, getType, getVehicle, getVelocity, gravity, hasPassenger, isLoaded, isOnGround, isRemoved, remove, removePassenger, setCreator, setLocation, setLocationAndRotation, setLocationAndRotation, setLocationAndRotationSafely, setLocationAndRotationSafely, setLocationSafely, setNotifier, setRotation, setScale, setTransform, setTransformSafely, setVehicle, setVelocity, transferToWorld, transferToWorld, transferToWorld, transferToWorldgetUniqueIdgetLocation, getWorldsetRawData, validateRawDatagetContentVersion, toContainergetApplicableProperties, getPropertycopyFrom, copyFrom, get, getContainers, getOrCreate, offer, offer, offer, offer, offer, offer, remove, remove, remove, require, supports, transform, tryOffer, tryOffer, tryOffer, tryOffer, undocopy, get, getKeys, getOrElse, getOrNull, getValue, getValues, require, supports, supportsgetTranslationboolean 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