类 VehicleEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.vehicle.VehicleEvent
直接已知子类:
VehicleCollisionEvent, VehicleCreateEvent, VehicleDamageEvent, VehicleDestroyEvent, VehicleEnterEvent, VehicleExitEvent, VehicleMoveEvent, VehicleUpdateEvent

public abstract class VehicleEvent extends Event
代表所有和载具有关的事件
  • 字段详细资料

    • vehicle

      protected Vehicle vehicle
  • 构造器详细资料

    • VehicleEvent

      public VehicleEvent(Vehicle vehicle)
  • 方法详细资料

    • getVehicle

      public final Vehicle getVehicle()
      获取发生事件的载具.

      原文:Get the vehicle

      返回:
      发生事件的载具