Interface Vehicle

All Superinterfaces:
CommandSender, Entity, Metadatable, Nameable, Permissible, PersistentDataHolder, ServerOperator
All Known Subinterfaces:
AbstractHorse, AcaciaBoat, AcaciaChestBoat, BambooChestRaft, BambooRaft, BirchBoat, BirchChestBoat, Boat, Camel, CherryBoat, CherryChestBoat, ChestBoat, ChestedHorse, CommandMinecart, DarkOakBoat, DarkOakChestBoat, Donkey, ExplosiveMinecart, HopperMinecart, Horse, JungleBoat, JungleChestBoat, Llama, MangroveBoat, MangroveChestBoat, Minecart, Mule, OakBoat, OakChestBoat, PaleOakBoat, PaleOakChestBoat, Pig, PoweredMinecart, RideableMinecart, SkeletonHorse, SpawnerMinecart, SpruceBoat, SpruceChestBoat, 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