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.Block
This method returns theBlockPlacer
static org.bukkit.event.HandlerList
org.bukkit.event.HandlerList
org.bukkit.inventory.ItemStack
This returns the placedItemStack
.boolean
void
setCancelled
(boolean cancel) void
This marks thisEvent
as immutable, it can no longer be modified afterwards.void
setItemStack
(org.bukkit.inventory.ItemStack item) This sets the placedItemStack
.Methods inherited from class org.bukkit.event.block.BlockEvent
getBlock
Methods 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
- TheBlockPlacer
placedItem
- TheItemStack
of theBlock
that 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
- TheItemStack
to be placed
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean cancel) - Specified by:
setCancelled
in interfaceorg.bukkit.event.Cancellable
-
setImmutable
public void setImmutable()This marks thisEvent
as 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:
getHandlers
in classorg.bukkit.event.Event
-