Class MultiBlockInteractEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
io.github.thebusybiscuit.slimefun4.api.events.MultiBlockInteractEvent
- All Implemented Interfaces:
org.bukkit.event.Cancellable
public class MultiBlockInteractEvent
extends org.bukkit.event.player.PlayerEvent
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.player.PlayerEvent
player
-
Constructor Summary
ConstructorsConstructorDescriptionMultiBlockInteractEvent
(org.bukkit.entity.Player p, MultiBlock mb, org.bukkit.block.Block clicked, org.bukkit.block.BlockFace face) -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.block.Block
This returns the specificBlock
that was interacted with.org.bukkit.block.BlockFace
This returns theBlockFace
that was clicked.static org.bukkit.event.HandlerList
org.bukkit.event.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
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
MultiBlockInteractEvent
@ParametersAreNonnullByDefault public MultiBlockInteractEvent(org.bukkit.entity.Player p, MultiBlock mb, org.bukkit.block.Block clicked, org.bukkit.block.BlockFace face)
-
-
Method Details
-
getMultiBlock
This method returns theMultiBlock
which was interacted with.- Returns:
- The
MultiBlock
of thisMultiBlockInteractEvent
-
getClickedBlock
@Nonnull public org.bukkit.block.Block getClickedBlock()This returns the specificBlock
that was interacted with.- Returns:
- The
Block
that was clicked
-
getClickedFace
@Nonnull public org.bukkit.block.BlockFace getClickedFace()This returns theBlockFace
that was clicked.- Returns:
- The
BlockFace
that was clicked
-
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
-
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
-