Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.event.hanging.HangingBreakEvent Class Reference
Inheritance diagram for org.bukkit.event.hanging.HangingBreakEvent:
org.bukkit.event.hanging.HangingEvent org.bukkit.event.Cancellable org.bukkit.event.Event org.bukkit.event.hanging.HangingBreakByEntityEvent

Classes

enum  RemoveCause
 

Public Member Functions

 HangingBreakEvent (final Hanging hanging, final HangingBreakEvent.RemoveCause cause)
 
HangingBreakEvent.RemoveCause getCause ()
 
boolean isCancelled ()
 
void setCancelled (boolean cancel)
 
HandlerList getHandlers ()
 
- Public Member Functions inherited from org.bukkit.event.hanging.HangingEvent
Hanging getEntity ()
 
- 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 Member Functions inherited from org.bukkit.event.hanging.HangingEvent
 HangingEvent (final Hanging painting)
 
- Protected Attributes inherited from org.bukkit.event.hanging.HangingEvent
Hanging hanging
 

Detailed Description

Triggered when a hanging entity is removed

Definition at line 10 of file HangingBreakEvent.java.

Member Function Documentation

HangingBreakEvent.RemoveCause org.bukkit.event.hanging.HangingBreakEvent.getCause ( )

Gets the cause for the hanging entity's removal

Returns
the RemoveCause for the hanging entity's removal

Definition at line 25 of file HangingBreakEvent.java.

25  {
26  return cause;
27  }
boolean org.bukkit.event.hanging.HangingBreakEvent.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 HangingBreakEvent.java.

29  {
30  return cancelled;
31  }
void org.bukkit.event.hanging.HangingBreakEvent.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 HangingBreakEvent.java.

33  {
34  this.cancelled = cancel;
35  }

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