public interface Boat extends Vehicle
| 限定符和类型 | 方法和说明 |
|---|---|
double |
getMaxSpeed()
已过时。
船是复杂的,其中许多方法不能在多个版本中正常的工作.
|
double |
getOccupiedDeceleration()
已过时。
船是复杂的,其中许多方法不能在多个版本中正常的工作.
|
double |
getUnoccupiedDeceleration()
已过时。
船是复杂的,其中许多方法不能在多个版本中正常的工作.
|
TreeSpecies |
getWoodType()
获取船的木质种类.
|
boolean |
getWorkOnLand()
已过时。
船是复杂的,其中许多方法不能在多个版本中正常的工作.
|
void |
setMaxSpeed(double speed)
已过时。
船是复杂的,其中许多方法不能在多个版本中正常的工作.
|
void |
setOccupiedDeceleration(double rate)
已过时。
船是复杂的,其中许多方法不能在多个版本中正常的工作.
|
void |
setUnoccupiedDeceleration(double rate)
已过时。
船是复杂的,其中许多方法不能在多个版本中正常的工作.
|
void |
setWoodType(TreeSpecies species)
设置船的木质种类.
|
void |
setWorkOnLand(boolean workOnLand)
已过时。
船是复杂的,其中许多方法不能在多个版本中正常的工作.
|
getVelocity, setVelocityaddPassenger, addScoreboardTag, eject, getEntityId, getFallDistance, getFireTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getScoreboardTags, getServer, getTicksLived, getType, getUniqueId, getVehicle, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isGlowing, isInsideVehicle, isInvulnerable, isOnGround, isSilent, isValid, leaveVehicle, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPortalCooldown, setSilent, setTicksLived, teleport, teleport, teleport, teleportgetMetadata, hasMetadata, removeMetadata, setMetadatagetName, sendMessage, sendMessageaddAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachmentisOp, setOpgetCustomName, setCustomNameTreeSpecies getWoodType()
原文: Gets the wood type of the boat.
void setWoodType(TreeSpecies species)
原文: Sets the wood type of the boat.
species - 新的木质种类@Deprecated double getMaxSpeed()
原文: Gets the maximum speed of a boat. The speed is unrelated to the velocity.
@Deprecated void setMaxSpeed(double speed)
原文: Sets the maximum speed of a boat. Must be nonnegative. Default is 0.4D.
speed - 最大速度.@Deprecated double getOccupiedDeceleration()
原文: Gets the deceleration rate (newSpeed = curSpeed * rate) of occupied boats. The default is 0.2.
@Deprecated void setOccupiedDeceleration(double rate)
原文: Sets the deceleration rate (newSpeed = curSpeed * rate) of occupied boats. Setting this to a higher value allows for quicker acceleration. The default is 0.2.
rate - 加减速率@Deprecated double getUnoccupiedDeceleration()
原文: Gets the deceleration rate (newSpeed = curSpeed * rate) of unoccupied boats. The default is -1. Values below 0 indicate that no additional deceleration is imposed.
@Deprecated void setUnoccupiedDeceleration(double rate)
原文: Sets the deceleration rate (newSpeed = curSpeed * rate) of unoccupied boats. Setting this to a higher value allows for quicker deceleration of boats when a player disembarks. The default is -1. Values below 0 indicate that no additional deceleration is imposed.
rate - 加减速速率@Deprecated boolean getWorkOnLand()
原文: Get whether boats can work on land.
@Deprecated void setWorkOnLand(boolean workOnLand)
原文: Set whether boats can work on land.
workOnLand - 能否在陆地上工作