Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.event.player.PlayerToggleFlightEvent Class Reference
Inheritance diagram for org.bukkit.event.player.PlayerToggleFlightEvent:
org.bukkit.event.player.PlayerEvent org.bukkit.event.Cancellable org.bukkit.event.Event

Public Member Functions

 PlayerToggleFlightEvent (final Player player, final boolean isFlying)
 
boolean isFlying ()
 
boolean isCancelled ()
 
void setCancelled (boolean cancel)
 
HandlerList getHandlers ()
 
- Public Member Functions inherited from org.bukkit.event.player.PlayerEvent
 PlayerEvent (final Player who)
 
final Player getPlayer ()
 
- Public Member Functions inherited from org.bukkit.event.Event
 Event ()
 
 Event (boolean isAsync)
 
String getEventName ()
 
abstract HandlerList getHandlers ()
 
final boolean isAsynchronous ()
 

Static Public Member Functions

static HandlerList getHandlerList ()
 

Additional Inherited Members

- Protected Attributes inherited from org.bukkit.event.player.PlayerEvent
Player player
 

Detailed Description

Called when a player toggles their flying state

Definition at line 10 of file PlayerToggleFlightEvent.java.

Member Function Documentation

boolean org.bukkit.event.player.PlayerToggleFlightEvent.isCancelled ( )

Gets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins

Returns
true if this event is cancelled

Implements org.bukkit.event.Cancellable.

Definition at line 29 of file PlayerToggleFlightEvent.java.

29  {
30  return cancel;
31  }
boolean org.bukkit.event.player.PlayerToggleFlightEvent.isFlying ( )

Returns whether the player is trying to start or stop flying.

Returns
flying state

Definition at line 25 of file PlayerToggleFlightEvent.java.

void org.bukkit.event.player.PlayerToggleFlightEvent.setCancelled ( boolean  cancel)

Sets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins.

Parameters
canceltrue if you wish to cancel this event

Implements org.bukkit.event.Cancellable.

Definition at line 33 of file PlayerToggleFlightEvent.java.

33  {
34  this.cancel = cancel;
35  }

The documentation for this class was generated from the following file: