org.bukkit.entity
Interface Vehicle

All Superinterfaces:
Entity, Metadatable
All Known Subinterfaces:
Boat, ExplosiveMinecart, HopperMinecart, Minecart, Pig, PoweredMinecart, PoweredMinecart, RideableMinecart, SpawnerMinecart, StorageMinecart, StorageMinecart

public interface Vehicle
extends Entity

Represents a vehicle entity.


Method Summary
 Vector getVelocity()
          Gets the vehicle's velocity.
 void setVelocity(Vector vel)
          Sets the vehicle's velocity.
 
Methods inherited from interface org.bukkit.entity.Entity
eject, getEntityId, getFallDistance, getFireTicks, getLastDamageCause, getLocation, getLocation, getMaxFireTicks, getNearbyEntities, getPassenger, getServer, getTicksLived, getType, getUniqueId, getVehicle, getWorld, isDead, isEmpty, isInsideVehicle, isOnGround, isValid, leaveVehicle, playEffect, remove, setFallDistance, setFireTicks, setLastDamageCause, setPassenger, setTicksLived, teleport, teleport, teleport, teleport
 
Methods inherited from interface org.bukkit.metadata.Metadatable
getMetadata, hasMetadata, removeMetadata, setMetadata
 

Method Detail

getVelocity

Vector getVelocity()
Gets the vehicle's velocity.

Specified by:
getVelocity in interface Entity
Returns:
velocity vector

setVelocity

void setVelocity(Vector vel)
Sets the vehicle's velocity.

Specified by:
setVelocity in interface Entity
Parameters:
vel - velocity vector


Copyright © 2013. All Rights Reserved.