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 classPaintingBreakEvent.RemoveCauseDeprecated.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.RemoveCausegetCause()Deprecated.Gets the cause for the painting's removalstatic HandlerListgetHandlerList()Deprecated.HandlerListgetHandlers()Deprecated.booleanisCancelled()Deprecated.Gets the cancellation state of this event.voidsetCancelled(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:CancellableGets 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:
isCancelledin interfaceCancellable- Returns:
- true if this event is cancelled
-
setCancelled
public void setCancelled(boolean cancel)Deprecated.Description copied from interface:CancellableSets 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:
setCancelledin interfaceCancellable- Parameters:
cancel- true if you wish to cancel this event
-
getHandlers
Deprecated.- Specified by:
getHandlersin classEvent
-
getHandlerList
Deprecated.
-