HangingBreakEvent
instead.@Deprecated public class PaintingBreakEvent extends PaintingEvent implements Cancellable
Modifier and Type | Class and Description |
---|---|
static class |
PaintingBreakEvent.RemoveCause
Deprecated.
An enum to specify the cause of the removal
|
Event.Result
painting
Constructor and Description |
---|
PaintingBreakEvent(Painting painting,
PaintingBreakEvent.RemoveCause cause)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
PaintingBreakEvent.RemoveCause |
getCause()
Deprecated.
Gets the cause for the painting's removal
|
static 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.
|
getPainting
getEventName, isAsynchronous
public PaintingBreakEvent(Painting painting, PaintingBreakEvent.RemoveCause cause)
public PaintingBreakEvent.RemoveCause getCause()
public boolean isCancelled()
Cancellable
isCancelled
in interface Cancellable
public void setCancelled(boolean cancel)
Cancellable
setCancelled
in interface Cancellable
cancel
- true if you wish to cancel this eventpublic HandlerList getHandlers()
getHandlers
in class Event
public static HandlerList getHandlerList()
Copyright © 2014. All rights reserved.