Bukkit-API  1.7.9-R0.2
The inofficial Bukkit-API
org.bukkit.event.block.BlockMultiPlaceEvent Class Reference
Inheritance diagram for org.bukkit.event.block.BlockMultiPlaceEvent:
org.bukkit.event.block.BlockPlaceEvent org.bukkit.event.block.BlockEvent org.bukkit.event.Cancellable org.bukkit.event.Event

Public Member Functions

 BlockMultiPlaceEvent (List< BlockState > states, Block clicked, ItemStack itemInHand, Player thePlayer, boolean canBuild)
 
List< BlockStategetReplacedBlockStates ()
 
- Public Member Functions inherited from org.bukkit.event.block.BlockPlaceEvent
 BlockPlaceEvent (final Block placedBlock, final BlockState replacedBlockState, final Block placedAgainst, final ItemStack itemInHand, final Player thePlayer, final boolean canBuild)
 
boolean isCancelled ()
 
void setCancelled (boolean cancel)
 
Player getPlayer ()
 
Block getBlockPlaced ()
 
BlockState getBlockReplacedState ()
 
Block getBlockAgainst ()
 
ItemStack getItemInHand ()
 
boolean canBuild ()
 
void setBuild (boolean canBuild)
 
HandlerList getHandlers ()
 
- Public Member Functions inherited from org.bukkit.event.block.BlockEvent
 BlockEvent (final Block theBlock)
 
final Block getBlock ()
 
- Public Member Functions inherited from org.bukkit.event.Event
 Event ()
 
 Event (boolean isAsync)
 
String getEventName ()
 
abstract HandlerList getHandlers ()
 
final boolean isAsynchronous ()
 

Additional Inherited Members

- Static Public Member Functions inherited from org.bukkit.event.block.BlockPlaceEvent
static HandlerList getHandlerList ()
 
- Protected Attributes inherited from org.bukkit.event.block.BlockPlaceEvent
boolean cancel
 
boolean canBuild
 
Block placedAgainst
 
BlockState replacedBlockState
 
ItemStack itemInHand
 
Player player
 
- Protected Attributes inherited from org.bukkit.event.block.BlockEvent
Block block
 

Detailed Description

Fired when a single block placement action of a player triggers the creation of multiple blocks(e.g. placing a bed block). The block returned by getBlockPlaced() and its related methods is the block where the placed block would exist if the placement only affected a single block.

Definition at line 18 of file BlockMultiPlaceEvent.java.

Member Function Documentation

List<BlockState> org.bukkit.event.block.BlockMultiPlaceEvent.getReplacedBlockStates ( )

Gets a list of blockstates for all blocks which were replaced by the placement of the new blocks. Most of these blocks will just have a Material type of AIR.

Returns
immutable list of replaced BlockStates

Definition at line 33 of file BlockMultiPlaceEvent.java.

33  {
34  return states;
35  }

The documentation for this class was generated from the following file: