|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.bukkit.event.Event org.bukkit.event.block.BlockEvent org.bukkit.event.block.BlockCanBuildEvent
public class BlockCanBuildEvent
Called when we try to place a block, to see if we can build it here or not.
Note:
getMaterial()
or getMaterialId()
instead.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.bukkit.event.Event |
---|
Event.Result |
Field Summary | |
---|---|
protected boolean |
buildable
|
protected int |
material
Deprecated. Magic value |
Fields inherited from class org.bukkit.event.block.BlockEvent |
---|
block |
Constructor Summary | |
---|---|
BlockCanBuildEvent(Block block,
int id,
boolean canBuild)
Deprecated. Magic value |
Method Summary | |
---|---|
static HandlerList |
getHandlerList()
|
HandlerList |
getHandlers()
|
Material |
getMaterial()
Gets the Material that we are trying to place. |
int |
getMaterialId()
Deprecated. Magic value |
boolean |
isBuildable()
Gets whether or not the block can be built here. |
void |
setBuildable(boolean cancel)
Sets whether the block can be built here or not. |
Methods inherited from class org.bukkit.event.block.BlockEvent |
---|
getBlock |
Methods inherited from class org.bukkit.event.Event |
---|
getEventName, isAsynchronous |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean buildable
@Deprecated protected int material
Constructor Detail |
---|
@Deprecated public BlockCanBuildEvent(Block block, int id, boolean canBuild)
Method Detail |
---|
public boolean isBuildable()
public void setBuildable(boolean cancel)
cancel
- true if you want to allow the block to be built here despite Minecraft's default behaviourpublic Material getMaterial()
@Deprecated public int getMaterialId()
public HandlerList getHandlers()
getHandlers
in class Event
public static HandlerList getHandlerList()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |