Interface Vehicle

All Superinterfaces:
CommandSender, Entity, Metadatable, Nameable, Permissible, PersistentDataHolder, ServerOperator
All Known Subinterfaces:
AbstractHorse, Boat, Camel, ChestBoat, ChestedHorse, CommandMinecart, Donkey, ExplosiveMinecart, HopperMinecart, Horse, Llama, Minecart, Mule, Pig, PoweredMinecart, RideableMinecart, SkeletonHorse, SpawnerMinecart, StorageMinecart, Strider, TraderLlama, ZombieHorse

public interface Vehicle extends Entity
Represents a vehicle entity.
  • Method Details

    • getVelocity

      @NotNull Vector getVelocity()
      Gets the vehicle's velocity.
      Specified by:
      getVelocity in interface Entity
      Returns:
      velocity vector
    • setVelocity

      void setVelocity(@NotNull Vector vel)
      Sets the vehicle's velocity in meters per tick.
      Specified by:
      setVelocity in interface Entity
      Parameters:
      vel - velocity vector