public interface Boat extends Vehicle
Entity.Spigot
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, getCustomName, getEntityId, getFallDistance, getFireTicks, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getPassenger, getServer, getTicksLived, getType, getUniqueId, getVehicle, getWorld, isCustomNameVisible, isDead, isEmpty, isInsideVehicle, isOnGround, isValid, leaveVehicle, playEffect, remove, setCustomName, setCustomNameVisible, setFallDistance, setFireTicks, setLastDamageCause, setPassenger, setTicksLived, spigot, teleport, teleport, teleport, teleport
getMetadata, hasMetadata, removeMetadata, setMetadata
getName, sendMessage, sendMessage
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment
isOp, setOp
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 © 2016. All rights reserved.