![]() |
Bukkit
1.4.7-R1.0
|
Called when we try to place a block, to see if we can build it here or not. More...
Inheritance diagram for org.bukkit.event.block.BlockCanBuildEvent:
Collaboration diagram for org.bukkit.event.block.BlockCanBuildEvent:Public Member Functions | |
| BlockCanBuildEvent (final Block block, final int id, final boolean canBuild) | |
| 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. | |
| Material | getMaterial () |
| Gets the Material that we are trying to place. | |
| int | getMaterialId () |
| Gets the Material ID for the Material that we are trying to place. | |
| HandlerList | getHandlers () |
Public Member Functions inherited from org.bukkit.event.block.BlockEvent | |
| BlockEvent (final Block theBlock) | |
| final Block | getBlock () |
| Gets the block involved in this event. | |
Public Member Functions inherited from org.bukkit.event.Event | |
| Event () | |
| The default constructor is defined for cleaner code. | |
| Event (boolean isAsync) | |
| This constructor is used to explicitly declare an event as synchronous or asynchronous. | |
| String | getEventName () |
| final boolean | isAsynchronous () |
| Any custom event that should not by synchronized with other events must use the specific constructor. | |
Static Public Member Functions | |
| static HandlerList | getHandlerList () |
Protected Attributes | |
| boolean | buildable |
| int | material |
Protected Attributes inherited from org.bukkit.event.block.BlockEvent | |
| Block | block |
Called when we try to place a block, to see if we can build it here or not.
Note:
Definition at line 16 of file BlockCanBuildEvent.java.
| org.bukkit.event.block.BlockCanBuildEvent.BlockCanBuildEvent | ( | final Block | block, |
| final int | id, | ||
| final boolean | canBuild | ||
| ) |
Definition at line 21 of file BlockCanBuildEvent.java.
References org.bukkit.event.block.BlockCanBuildEvent.buildable, and org.bukkit.event.block.BlockCanBuildEvent.material.
|
static |
Definition at line 69 of file BlockCanBuildEvent.java.
|
virtual |
Implements org.bukkit.event.Event.
Definition at line 65 of file BlockCanBuildEvent.java.
| Material org.bukkit.event.block.BlockCanBuildEvent.getMaterial | ( | ) |
Gets the Material that we are trying to place.
Definition at line 51 of file BlockCanBuildEvent.java.
References org.bukkit.Material.getMaterial(), and org.bukkit.event.block.BlockCanBuildEvent.material.
| int org.bukkit.event.block.BlockCanBuildEvent.getMaterialId | ( | ) |
Gets the Material ID for the Material that we are trying to place.
Definition at line 60 of file BlockCanBuildEvent.java.
References org.bukkit.event.block.BlockCanBuildEvent.material.
| boolean org.bukkit.event.block.BlockCanBuildEvent.isBuildable | ( | ) |
Gets whether or not the block can be built here.
By default, returns Minecraft's answer on whether the block can be built here or not.
Definition at line 33 of file BlockCanBuildEvent.java.
References org.bukkit.event.block.BlockCanBuildEvent.buildable.
| void org.bukkit.event.block.BlockCanBuildEvent.setBuildable | ( | boolean | cancel | ) |
Sets whether the block can be built here or not.
| cancel | true if you want to allow the block to be built here despite Minecraft's default behaviour |
Definition at line 42 of file BlockCanBuildEvent.java.
References org.bukkit.event.block.BlockCanBuildEvent.buildable.
|
protected |
Definition at line 18 of file BlockCanBuildEvent.java.
Referenced by org.bukkit.event.block.BlockCanBuildEvent.BlockCanBuildEvent(), org.bukkit.event.block.BlockCanBuildEvent.isBuildable(), and org.bukkit.event.block.BlockCanBuildEvent.setBuildable().
|
protected |
Definition at line 19 of file BlockCanBuildEvent.java.
Referenced by org.bukkit.event.block.BlockCanBuildEvent.BlockCanBuildEvent(), org.bukkit.event.block.BlockCanBuildEvent.getMaterial(), and org.bukkit.event.block.BlockCanBuildEvent.getMaterialId().