Package org.bukkit.entity
Interface Boat
- All Superinterfaces:
- CommandSender,- Entity,- Metadatable,- Nameable,- Permissible,- PersistentDataHolder,- ServerOperator,- Vehicle
- All Known Subinterfaces:
- AcaciaBoat,- AcaciaChestBoat,- BambooChestRaft,- BambooRaft,- BirchBoat,- BirchChestBoat,- CherryBoat,- CherryChestBoat,- ChestBoat,- DarkOakBoat,- DarkOakChestBoat,- JungleBoat,- JungleChestBoat,- MangroveBoat,- MangroveChestBoat,- OakBoat,- OakChestBoat,- PaleOakBoat,- PaleOakChestBoat,- SpruceBoat,- SpruceChestBoat
Represents a boat entity.
- 
Nested Class SummaryNested ClassesModifier and TypeInterfaceDescriptionstatic enumRepresents the status of the boat.static enumDeprecated.different boats types are now different entity typesNested classes/interfaces inherited from interface org.bukkit.entity.EntityEntity.Spigot
- 
Method SummaryModifier and TypeMethodDescriptionDeprecated.different boats types are now different entity typesdoubleDeprecated.boats are complex and many of these methods do not work correctly across multiple versions.doubleDeprecated.boats are complex and many of these methods do not work correctly across multiple versions.Gets the status of the boat.doubleDeprecated.boats are complex and many of these methods do not work correctly across multiple versions.Deprecated.deprecated in favor ofgetBoatType()booleanDeprecated.boats are complex and many of these methods do not work correctly across multiple versions.voidsetBoatType(Boat.Type type) Deprecated.different boats types are now different entity typesvoidsetMaxSpeed(double speed) Deprecated.boats are complex and many of these methods do not work correctly across multiple versions.voidsetOccupiedDeceleration(double rate) Deprecated.boats are complex and many of these methods do not work correctly across multiple versions.voidsetUnoccupiedDeceleration(double rate) Deprecated.boats are complex and many of these methods do not work correctly across multiple versions.voidsetWoodType(TreeSpecies species) Deprecated.deprecated in favor ofsetBoatType(Type)voidsetWorkOnLand(boolean workOnLand) Deprecated.boats are complex and many of these methods do not work correctly across multiple versions.Methods inherited from interface org.bukkit.command.CommandSendergetName, sendMessage, sendMessage, sendMessage, sendMessageMethods inherited from interface org.bukkit.entity.EntityaddPassenger, addScoreboardTag, copy, copy, createSnapshot, eject, getAsString, getBoundingBox, getEntityId, getFacing, getFallDistance, getFireTicks, getFreezeTicks, getHeight, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getMaxFreezeTicks, getNearbyEntities, getPassenger, getPassengers, getPistonMoveReaction, getPortalCooldown, getPose, getScoreboardTags, getServer, getSpawnCategory, getSwimHighSpeedSplashSound, getSwimSound, getSwimSplashSound, getTicksLived, getTrackedBy, getType, getUniqueId, getVehicle, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isFrozen, isGlowing, isInsideVehicle, isInvulnerable, isInWater, isInWorld, isOnGround, isPersistent, isSilent, isValid, isVisibleByDefault, isVisualFire, leaveVehicle, playEffect, remove, removePassenger, removeScoreboardTag, setCustomNameVisible, setFallDistance, setFireTicks, setFreezeTicks, setGlowing, setGravity, setInvulnerable, setLastDamageCause, setPassenger, setPersistent, setPortalCooldown, setRotation, setSilent, setTicksLived, setVisibleByDefault, setVisualFire, spigot, teleport, teleport, teleport, teleportMethods inherited from interface org.bukkit.metadata.MetadatablegetMetadata, hasMetadata, removeMetadata, setMetadataMethods inherited from interface org.bukkit.NameablegetCustomName, setCustomNameMethods inherited from interface org.bukkit.permissions.PermissibleaddAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachmentMethods inherited from interface org.bukkit.persistence.PersistentDataHoldergetPersistentDataContainerMethods inherited from interface org.bukkit.permissions.ServerOperatorisOp, setOpMethods inherited from interface org.bukkit.entity.VehiclegetVelocity, setVelocity
- 
Method Details- 
getWoodTypeDeprecated.deprecated in favor ofgetBoatType()Gets the wood type of the boat.- Returns:
- the wood type
 
- 
setWoodTypeDeprecated.deprecated in favor ofsetBoatType(Type)Sets the wood type of the boat.- Parameters:
- species- the new wood type
 
- 
getBoatTypeDeprecated.different boats types are now different entity typesGets the type of the boat.- Returns:
- the boat type
 
- 
setBoatTypeDeprecated.different boats types are now different entity typesSets the type of the boat.- Parameters:
- type- the new type
 
- 
getMaxSpeedDeprecated.boats are complex and many of these methods do not work correctly across multiple versions.Gets the maximum speed of a boat. The speed is unrelated to the velocity.- Returns:
- The max speed.
 
- 
setMaxSpeedDeprecated.boats are complex and many of these methods do not work correctly across multiple versions.Sets the maximum speed of a boat. Must be nonnegative. Default is 0.4D.- Parameters:
- speed- The max speed.
 
- 
getOccupiedDecelerationDeprecated.boats are complex and many of these methods do not work correctly across multiple versions.Gets the deceleration rate (newSpeed = curSpeed * rate) of occupied boats. The default is 0.2.- Returns:
- The rate of deceleration
 
- 
setOccupiedDecelerationDeprecated.boats are complex and many of these methods do not work correctly across multiple versions.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.- Parameters:
- rate- deceleration rate
 
- 
getUnoccupiedDecelerationDeprecated.boats are complex and many of these methods do not work correctly across multiple versions.Gets the deceleration rate (newSpeed = curSpeed * rate) of unoccupied boats. The default is -1. Values below 0 indicate that no additional deceleration is imposed.- Returns:
- The rate of deceleration
 
- 
setUnoccupiedDecelerationDeprecated.boats are complex and many of these methods do not work correctly across multiple versions.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.- Parameters:
- rate- deceleration rate
 
- 
getWorkOnLandDeprecated.boats are complex and many of these methods do not work correctly across multiple versions.Get whether boats can work on land.- Returns:
- whether boats can work on land
 
- 
setWorkOnLandDeprecated.boats are complex and many of these methods do not work correctly across multiple versions.Set whether boats can work on land.- Parameters:
- workOnLand- whether boats can work on land
 
- 
getStatusGets the status of the boat.- Returns:
- the status
 
 
-