Class BlockPlacerPlaceEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.block.BlockEvent
io.github.thebusybiscuit.slimefun4.api.events.BlockPlacerPlaceEvent
- All Implemented Interfaces:
 Cancellable
- Author:
 - TheBusyBiscuit
 
- 
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result - 
Field Summary
Fields inherited from class org.bukkit.event.block.BlockEvent
block - 
Constructor Summary
ConstructorsConstructorDescriptionBlockPlacerPlaceEvent(Block blockPlacer, ItemStack placedItem, Block block) This creates a newBlockPlacerPlaceEvent. - 
Method Summary
Modifier and TypeMethodDescriptionThis method returns theBlockPlacerstatic HandlerListThis returns the placedItemStack.booleanvoidsetCancelled(boolean cancel) voidThis marks thisEventas immutable, it can no longer be modified afterwards.voidsetItemStack(ItemStack item) This sets the placedItemStack.Methods inherited from class org.bukkit.event.block.BlockEvent
getBlockMethods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous 
- 
Constructor Details
- 
BlockPlacerPlaceEvent
@ParametersAreNonnullByDefault public BlockPlacerPlaceEvent(Block blockPlacer, ItemStack placedItem, Block block) This creates a newBlockPlacerPlaceEvent.- Parameters:
 blockPlacer- TheBlockPlacerplacedItem- TheItemStackof theBlockthat was placedblock- The placedBlock
 
 - 
 - 
Method Details
- 
getBlockPlacer
This method returns theBlockPlacer- Returns:
 - The 
BlockPlacer 
 - 
getItemStack
This returns the placedItemStack.- Returns:
 - The placed 
ItemStack 
 - 
setItemStack
This sets the placedItemStack.- Parameters:
 item- TheItemStackto be placed
 - 
isCancelled
public boolean isCancelled()- Specified by:
 isCancelledin interfaceCancellable
 - 
setCancelled
public void setCancelled(boolean cancel) - Specified by:
 setCancelledin interfaceCancellable
 - 
setImmutable
public void setImmutable()This marks thisEventas immutable, it can no longer be modified afterwards. - 
getHandlerList
 - 
getHandlers
- Specified by:
 getHandlersin classEvent
 
 -