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
ConstructorDescriptionBlockPlacerPlaceEvent
(Block blockPlacer, ItemStack placedItem, Block block) This creates a newBlockPlacerPlaceEvent
. -
Method Summary
Modifier and TypeMethodDescriptionThis method returns theBlockPlacer
static HandlerList
This returns the placedItemStack
.boolean
void
setCancelled
(boolean cancel) void
This marks thisEvent
as immutable, it can no longer be modified afterwards.void
setItemStack
(ItemStack item) This sets the placedItemStack
.Methods inherited from class org.bukkit.event.block.BlockEvent
getBlock
Methods 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
- TheBlockPlacer
placedItem
- TheItemStack
of theBlock
that 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
- TheItemStack
to be placed
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfaceCancellable
-
setCancelled
public void setCancelled(boolean cancel) - Specified by:
setCancelled
in interfaceCancellable
-
setImmutable
public void setImmutable()This marks thisEvent
as immutable, it can no longer be modified afterwards. -
getHandlerList
-
getHandlers
- Specified by:
getHandlers
in classEvent
-