Class SlimefunBlockPlaceEvent
java.lang.Object
org.bukkit.event.Event
io.github.thebusybiscuit.slimefun4.api.events.SlimefunBlockPlaceEvent
- All Implemented Interfaces:
Cancellable
- Author:
- J3fftw1
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Constructor Summary
ConstructorDescriptionSlimefunBlockPlaceEvent
(Player player, ItemStack placedItem, Block blockPlaced, SlimefunItem slimefunItem) -
Method Summary
Modifier and TypeMethodDescriptionThis gets the placedBlock
static HandlerList
This gets the placedItemStack
.This gets thePlayer
This gets theSlimefunItem
being placedboolean
void
setCancelled
(boolean cancelled) Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
SlimefunBlockPlaceEvent
@ParametersAreNonnullByDefault public SlimefunBlockPlaceEvent(Player player, ItemStack placedItem, Block blockPlaced, SlimefunItem slimefunItem) - Parameters:
player
- ThePlayer
who placed thisSlimefunItem
placedItem
- TheItemStack
held by thePlayer
blockPlaced
- TheBlock
placed by thePlayer
slimefunItem
- TheSlimefunItem
within theItemStack
-
-
Method Details
-
getBlockPlaced
This gets the placedBlock
- Returns:
- The placed
Block
-
getSlimefunItem
This gets theSlimefunItem
being placed- Returns:
- The
SlimefunItem
being placed
-
getItemStack
This gets the placedItemStack
.- Returns:
- The placed
ItemStack
-
getPlayer
This gets thePlayer
- Returns:
- The
Player
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfaceCancellable
-
setCancelled
public void setCancelled(boolean cancelled) - Specified by:
setCancelled
in interfaceCancellable
-
getHandlerList
-
getHandlers
- Specified by:
getHandlers
in classEvent
-