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