Bukkit
1.4.7-R1.0
Main Page
Related Pages
Classes
Files
File List
All
Classes
Namespaces
Files
Functions
Variables
Enumerator
Pages
PaintingBreakEvent.java
Go to the documentation of this file.
1
package
org.bukkit.event.painting;
2
3
import
org.bukkit.Warning;
4
import
org.bukkit.entity.Painting;
5
import
org.bukkit.event.Cancellable;
6
import
org.bukkit.event.HandlerList;
7
12
@Deprecated
13
@Warning(reason=
"This event has been replaced by HangingBreakEvent"
)
14
public class
PaintingBreakEvent
extends
PaintingEvent
implements
Cancellable
{
15
private
static
final
HandlerList
handlers =
new
HandlerList
();
16
private
boolean
cancelled;
17
private
final
RemoveCause
cause;
18
19
public
PaintingBreakEvent
(
final
Painting
painting,
final
RemoveCause
cause) {
20
super(painting);
21
this.cause = cause;
22
}
23
29
public
RemoveCause
getCause
() {
30
return
cause;
31
}
32
33
public
boolean
isCancelled
() {
34
return
cancelled;
35
}
36
37
public
void
setCancelled
(
boolean
cancel) {
38
this.cancelled = cancel;
39
}
40
44
public
enum
RemoveCause
{
48
ENTITY
,
52
FIRE
,
56
OBSTRUCTION
,
60
WATER
,
64
PHYSICS
,
65
}
66
67
@Override
68
public
HandlerList
getHandlers
() {
69
return
handlers;
70
}
71
72
public
static
HandlerList
getHandlerList
() {
73
return
handlers;
74
}
75
}
org
bukkit
event
painting
PaintingBreakEvent.java
Generated on Wed May 22 2013 13:16:38 for Bukkit by
1.8.2