Package org.bukkit.event.painting
Class PaintingBreakEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.painting.PaintingEvent
org.bukkit.event.painting.PaintingBreakEvent
- All Implemented Interfaces:
Cancellable
- Direct Known Subclasses:
PaintingBreakByEntityEvent
@Deprecated public class PaintingBreakEvent extends PaintingEvent implements Cancellable
Deprecated.
Use
HangingBreakEvent
instead.Triggered when a painting is removed
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PaintingBreakEvent.RemoveCause
Deprecated.An enum to specify the cause of the removal -
Field Summary
-
Constructor Summary
Constructors Constructor Description PaintingBreakEvent(Painting painting, PaintingBreakEvent.RemoveCause cause)
Deprecated. -
Method Summary
Modifier and Type Method Description PaintingBreakEvent.RemoveCause
getCause()
Deprecated.Gets the cause for the painting's removalstatic HandlerList
getHandlerList()
Deprecated.HandlerList
getHandlers()
Deprecated.boolean
isCancelled()
Deprecated.Gets the cancellation state of this event.void
setCancelled(boolean cancel)
Deprecated.Sets the cancellation state of this event.
-
Constructor Details
-
PaintingBreakEvent
Deprecated.
-
-
Method Details
-
getCause
Deprecated.Gets the cause for the painting's removal- Returns:
- the RemoveCause for the painting's removal
-
isCancelled
public boolean isCancelled()Deprecated.Description copied from interface:Cancellable
Gets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins- Specified by:
isCancelled
in interfaceCancellable
- Returns:
- true if this event is cancelled
-
setCancelled
public void setCancelled(boolean cancel)Deprecated.Description copied from interface:Cancellable
Sets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins.- Specified by:
setCancelled
in interfaceCancellable
- Parameters:
cancel
- true if you wish to cancel this event
-
getHandlers
Deprecated.- Specified by:
getHandlers
in classEvent
-
getHandlerList
Deprecated.
-