Class MultiBlockInteractEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
io.github.thebusybiscuit.slimefun4.api.events.MultiBlockInteractEvent
- 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.player.PlayerEvent
player
-
Constructor Summary
ConstructorDescriptionMultiBlockInteractEvent
(Player p, MultiBlock mb, Block clicked, BlockFace face) -
Method Summary
Modifier and TypeMethodDescriptionThis returns the specificBlock
that was interacted with.This returns theBlockFace
that was clicked.static HandlerList
This method returns theMultiBlock
which was interacted with.boolean
void
setCancelled
(boolean cancel) Methods inherited from class org.bukkit.event.player.PlayerEvent
getPlayer
Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
MultiBlockInteractEvent
@ParametersAreNonnullByDefault public MultiBlockInteractEvent(Player p, MultiBlock mb, Block clicked, BlockFace face)
-
-
Method Details
-
getMultiBlock
This method returns theMultiBlock
which was interacted with.- Returns:
- The
MultiBlock
of thisMultiBlockInteractEvent
-
getClickedBlock
This returns the specificBlock
that was interacted with.- Returns:
- The
Block
that was clicked
-
getClickedFace
This returns theBlockFace
that was clicked.- Returns:
- The
BlockFace
that was clicked
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfaceCancellable
-
setCancelled
public void setCancelled(boolean cancel) - Specified by:
setCancelled
in interfaceCancellable
-
getHandlerList
-
getHandlers
- Specified by:
getHandlers
in classEvent
-