Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.event.block.BlockPhysicsEvent Class Reference
Inheritance diagram for org.bukkit.event.block.BlockPhysicsEvent:
org.bukkit.event.block.BlockEvent org.bukkit.event.Cancellable org.bukkit.event.Event

Public Member Functions

 BlockPhysicsEvent (final Block block, final int changed)
 
int getChangedTypeId ()
 
Material getChangedType ()
 
boolean isCancelled ()
 
void setCancelled (boolean cancel)
 
HandlerList getHandlers ()
 
- Public Member Functions inherited from org.bukkit.event.block.BlockEvent
 BlockEvent (final Block theBlock)
 
final Block getBlock ()
 
- 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.block.BlockEvent
Block block
 

Detailed Description

Thrown when a block physics check is called

Definition at line 11 of file BlockPhysicsEvent.java.

Constructor & Destructor Documentation

org.bukkit.event.block.BlockPhysicsEvent.BlockPhysicsEvent ( final Block  block,
final int  changed 
)
Deprecated:
Magic value

Definition at line 21 of file BlockPhysicsEvent.java.

21  {
22  super(block);
23  this.changed = changed;
24  }

Member Function Documentation

Material org.bukkit.event.block.BlockPhysicsEvent.getChangedType ( )

Gets the type of block that changed, causing this event

Returns
Changed block's type

Definition at line 42 of file BlockPhysicsEvent.java.

References org.bukkit.Material.getMaterial().

42  {
43  return Material.getMaterial(changed);
44  }
int org.bukkit.event.block.BlockPhysicsEvent.getChangedTypeId ( )

Gets the type of block that changed, causing this event

Returns
Changed block's type id
Deprecated:
Magic value

Definition at line 33 of file BlockPhysicsEvent.java.

33  {
34  return changed;
35  }
boolean org.bukkit.event.block.BlockPhysicsEvent.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 46 of file BlockPhysicsEvent.java.

46  {
47  return cancel;
48  }
void org.bukkit.event.block.BlockPhysicsEvent.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 50 of file BlockPhysicsEvent.java.

50  {
51  this.cancel = cancel;
52  }

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