Package org.bukkit.entity
Interface Boat
- All Superinterfaces:
CommandSender
,Entity
,Metadatable
,Nameable
,Permissible
,PersistentDataHolder
,ServerOperator
,Vehicle
- All Known Subinterfaces:
ChestBoat
Represents a boat entity.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
Represents the status of the boat.static enum
Represents the type of boats.Nested classes/interfaces inherited from interface org.bukkit.entity.Entity
Entity.Spigot
-
Method Summary
Modifier and TypeMethodDescriptionGets the type of the boat.double
Deprecated.boats are complex and many of these methods do not work correctly across multiple versions.double
Deprecated.boats are complex and many of these methods do not work correctly across multiple versions.Gets the status of the boat.double
Deprecated.boats are complex and many of these methods do not work correctly across multiple versions.Deprecated.deprecated in favor ofgetBoatType()
boolean
Deprecated.boats are complex and many of these methods do not work correctly across multiple versions.void
setBoatType
(Boat.Type type) Sets the type of the boat.void
setMaxSpeed
(double speed) Deprecated.boats are complex and many of these methods do not work correctly across multiple versions.void
setOccupiedDeceleration
(double rate) Deprecated.boats are complex and many of these methods do not work correctly across multiple versions.void
setUnoccupiedDeceleration
(double rate) Deprecated.boats are complex and many of these methods do not work correctly across multiple versions.void
setWoodType
(TreeSpecies species) Deprecated.deprecated in favor ofsetBoatType(Type)
void
setWorkOnLand
(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.CommandSender
getName, sendMessage, sendMessage, sendMessage, sendMessage
Methods inherited from interface org.bukkit.entity.Entity
addPassenger, addScoreboardTag, eject, 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, getType, getUniqueId, getVehicle, getWidth, getWorld, hasGravity, isCustomNameVisible, isDead, isEmpty, isFrozen, isGlowing, isInsideVehicle, isInvulnerable, isInWater, 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, teleport
Methods inherited from interface org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadata
Methods inherited from interface org.bukkit.Nameable
getCustomName, setCustomName
Methods inherited from interface org.bukkit.permissions.Permissible
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachment
Methods inherited from interface org.bukkit.persistence.PersistentDataHolder
getPersistentDataContainer
Methods inherited from interface org.bukkit.permissions.ServerOperator
isOp, setOp
Methods inherited from interface org.bukkit.entity.Vehicle
getVelocity, setVelocity
-
Method Details
-
getWoodType
Deprecated.deprecated in favor ofgetBoatType()
Gets the wood type of the boat.- Returns:
- the wood type
-
setWoodType
Deprecated.deprecated in favor ofsetBoatType(Type)
Sets the wood type of the boat.- Parameters:
species
- the new wood type
-
getBoatType
Gets the type of the boat.- Returns:
- the boat type
-
setBoatType
Sets the type of the boat.- Parameters:
type
- the new type
-
getMaxSpeed
Deprecated.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.
-
setMaxSpeed
Deprecated.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.
-
getOccupiedDeceleration
Deprecated.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
-
setOccupiedDeceleration
Deprecated.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
-
getUnoccupiedDeceleration
Deprecated.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
-
setUnoccupiedDeceleration
Deprecated.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
-
getWorkOnLand
Deprecated.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
-
setWorkOnLand
Deprecated.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
-
getStatus
Gets the status of the boat.- Returns:
- the status
-