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

Public Member Functions

 PlayerVelocityEvent (final Player player, final Vector velocity)
 
boolean isCancelled ()
 
void setCancelled (boolean cancel)
 
Vector getVelocity ()
 
void setVelocity (Vector velocity)
 
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 the velocity of a player changes.

Definition at line 11 of file PlayerVelocityEvent.java.

Member Function Documentation

Vector org.bukkit.event.player.PlayerVelocityEvent.getVelocity ( )

Gets the velocity vector that will be sent to the player

Returns
Vector the player will get

Definition at line 34 of file PlayerVelocityEvent.java.

34  {
35  return velocity;
36  }
boolean org.bukkit.event.player.PlayerVelocityEvent.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 21 of file PlayerVelocityEvent.java.

21  {
22  return cancel;
23  }
void org.bukkit.event.player.PlayerVelocityEvent.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 25 of file PlayerVelocityEvent.java.

25  {
26  this.cancel = cancel;
27  }
void org.bukkit.event.player.PlayerVelocityEvent.setVelocity ( Vector  velocity)

Sets the velocity vector that will be sent to the player

Parameters
velocityThe velocity vector that will be sent to the player

Definition at line 43 of file PlayerVelocityEvent.java.

43  {
44  this.velocity = velocity;
45  }

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