Bukkit
1.5.2-R1.0
Main Page
Related Pages
Classes
Files
File List
All
Classes
Namespaces
Files
Functions
Variables
Enumerator
Pages
BlockCanBuildEvent.java
Go to the documentation of this file.
1
package
org.bukkit.event.block;
2
3
import
org.bukkit.block.Block;
4
import
org.bukkit.Material;
5
import
org.bukkit.event.HandlerList;
6
16
public
class
BlockCanBuildEvent
extends
BlockEvent
{
17
private
static
final
HandlerList
handlers =
new
HandlerList
();
18
protected
boolean
buildable
;
19
protected
int
material
;
20
21
public
BlockCanBuildEvent
(
final
Block
block
,
final
int
id
,
final
boolean
canBuild) {
22
super(block);
23
buildable
= canBuild;
24
material
= id;
25
}
26
33
public
boolean
isBuildable
() {
34
return
buildable
;
35
}
36
42
public
void
setBuildable
(
boolean
cancel) {
43
this.
buildable
= cancel;
44
}
45
51
public
Material
getMaterial
() {
52
return
Material
.
getMaterial
(
material
);
53
}
54
60
public
int
getMaterialId
() {
61
return
material
;
62
}
63
64
@Override
65
public
HandlerList
getHandlers
() {
66
return
handlers;
67
}
68
69
public
static
HandlerList
getHandlerList
() {
70
return
handlers;
71
}
72
}
org
bukkit
event
block
BlockCanBuildEvent.java
Generated on Thu Jun 20 2013 09:16:43 for Bukkit by
1.8.2