Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.event.painting.PaintingBreakEvent Class Reference
Inheritance diagram for org.bukkit.event.painting.PaintingBreakEvent:
org.bukkit.event.painting.PaintingEvent org.bukkit.event.Cancellable org.bukkit.event.Event org.bukkit.event.painting.PaintingBreakByEntityEvent

Classes

enum  RemoveCause
 

Public Member Functions

 PaintingBreakEvent (final Painting painting, final RemoveCause cause)
 
RemoveCause getCause ()
 
boolean isCancelled ()
 
void setCancelled (boolean cancel)
 
HandlerList getHandlers ()
 
- Public Member Functions inherited from org.bukkit.event.painting.PaintingEvent
Painting getPainting ()
 
- 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.painting.PaintingEvent
 PaintingEvent (final Painting painting)
 
- Protected Attributes inherited from org.bukkit.event.painting.PaintingEvent
Painting painting
 

Detailed Description

Triggered when a painting is removed

Deprecated:
Use org.bukkit.event.hanging.HangingBreakEvent instead.

Definition at line 15 of file PaintingBreakEvent.java.

Member Function Documentation

RemoveCause org.bukkit.event.painting.PaintingBreakEvent.getCause ( )

Gets the cause for the painting's removal

Returns
the RemoveCause for the painting's removal

Definition at line 30 of file PaintingBreakEvent.java.

30  {
31  return cause;
32  }
boolean org.bukkit.event.painting.PaintingBreakEvent.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 34 of file PaintingBreakEvent.java.

34  {
35  return cancelled;
36  }
void org.bukkit.event.painting.PaintingBreakEvent.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 38 of file PaintingBreakEvent.java.

38  {
39  this.cancelled = cancel;
40  }

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