public class PlayerEnterVehicleEvent extends PlayerVehicleEvent implements Cancellable
PlayerExitVehicleEvent
Constructor and Description |
---|
PlayerEnterVehicleEvent(Player player,
int seat) |
Modifier and Type | Method and Description |
---|---|
int |
getSeat() |
boolean |
isCancelled()
Determines if the event is cancelled.
|
void |
setCancelled(boolean cancel)
Cancels this event.
|
getPlayer
public PlayerEnterVehicleEvent(Player player, int seat)
public int getSeat()
public boolean isCancelled()
Cancellable
isCancelled
in interface Cancellable
public void setCancelled(boolean cancel)
Cancellable
setCancelled
in interface Cancellable
cancel
- set to true if you want to cancel this event.