Interface Vehicle
- All Superinterfaces:
CommandSender, Entity, Metadatable, Nameable, Permissible, PersistentDataHolder, ServerOperator
- All Known Subinterfaces:
AbstractHorse, AcaciaBoat, AcaciaChestBoat, BambooChestRaft, BambooRaft, BirchBoat, BirchChestBoat, Boat, Camel, CamelHusk, CherryBoat, CherryChestBoat, ChestBoat, ChestedHorse, CommandMinecart, DarkOakBoat, DarkOakChestBoat, Donkey, ExplosiveMinecart, HappyGhast, HopperMinecart, Horse, JungleBoat, JungleChestBoat, Llama, MangroveBoat, MangroveChestBoat, Minecart, Mule, OakBoat, OakChestBoat, PaleOakBoat, PaleOakChestBoat, Pig, PoweredMinecart, RideableMinecart, SkeletonHorse, SpawnerMinecart, SpruceBoat, SpruceChestBoat, StorageMinecart, Strider, TraderLlama, ZombieHorse
Represents a vehicle entity.
-
Nested Class Summary
Nested classes/interfaces inherited from interface Entity
Entity.Spigot -
Method Summary
Modifier and TypeMethodDescriptionGets the vehicle's velocity.voidsetVelocity(Vector vel) Sets the vehicle's velocity in meters per tick.Methods inherited from interface CommandSender
getName, sendMessage, sendMessage, sendMessage, sendMessageMethods inherited from interface Entity
addPassenger, 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 Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadataMethods inherited from interface Nameable
getCustomName, setCustomNameMethods inherited from interface Permissible
addAttachment, addAttachment, addAttachment, addAttachment, getEffectivePermissions, hasPermission, hasPermission, isPermissionSet, isPermissionSet, recalculatePermissions, removeAttachmentMethods inherited from interface PersistentDataHolder
getPersistentDataContainerMethods inherited from interface ServerOperator
isOp, setOp
-
Method Details
-
getVelocity
Gets the vehicle's velocity.- Specified by:
getVelocityin interfaceEntity- Returns:
- velocity vector
-
setVelocity
Sets the vehicle's velocity in meters per tick.- Specified by:
setVelocityin interfaceEntity- Parameters:
vel- velocity vector
-