public interface Boat extends Vehicle
Modifier and Type | Method and Description |
---|---|
double |
getMaxSpeed()
Gets the maximum speed of a boat.
|
double |
getOccupiedDeceleration()
Gets the deceleration rate (newSpeed = curSpeed * rate) of occupied
boats.
|
double |
getUnoccupiedDeceleration()
Gets the deceleration rate (newSpeed = curSpeed * rate) of unoccupied
boats.
|
boolean |
getWorkOnLand()
Get whether boats can work on land.
|
void |
setMaxSpeed(double speed)
Sets the maximum speed of a boat.
|
void |
setOccupiedDeceleration(double rate)
Sets the deceleration rate (newSpeed = curSpeed * rate) of occupied
boats.
|
void |
setUnoccupiedDeceleration(double rate)
Sets the deceleration rate (newSpeed = curSpeed * rate) of unoccupied
boats.
|
void |
setWorkOnLand(boolean workOnLand)
Set whether boats can work on land.
|
getVelocity, setVelocity
eject, getEntityId, getFallDistance, getFireTicks, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getPassenger, getServer, getTicksLived, getType, getUniqueId, getVehicle, getWorld, isDead, isEmpty, isInsideVehicle, isOnGround, isValid, leaveVehicle, playEffect, remove, setFallDistance, setFireTicks, setLastDamageCause, setPassenger, setTicksLived, teleport, teleport, teleport, teleport
getMetadata, hasMetadata, removeMetadata, setMetadata
double getMaxSpeed()
void setMaxSpeed(double speed)
speed
- The max speed.double getOccupiedDeceleration()
void setOccupiedDeceleration(double rate)
rate
- deceleration ratedouble getUnoccupiedDeceleration()
void setUnoccupiedDeceleration(double rate)
rate
- deceleration rateboolean getWorkOnLand()
void setWorkOnLand(boolean workOnLand)
workOnLand
- whether boats can work on landCopyright © 2014. All rights reserved.