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.BlockThis returns the specificBlockthat was interacted with.org.bukkit.block.BlockFaceThis returns theBlockFacethat was clicked.static org.bukkit.event.HandlerListorg.bukkit.event.HandlerListThis method returns theMultiBlockwhich was interacted with.booleanvoidsetCancelled(boolean cancel) Methods inherited from class org.bukkit.event.player.PlayerEvent
getPlayerMethods 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 theMultiBlockwhich was interacted with.- Returns:
- The
MultiBlockof thisMultiBlockInteractEvent
-
getClickedBlock
@Nonnull public org.bukkit.block.Block getClickedBlock()This returns the specificBlockthat was interacted with.- Returns:
- The
Blockthat was clicked
-
getClickedFace
@Nonnull public org.bukkit.block.BlockFace getClickedFace()This returns theBlockFacethat was clicked.- Returns:
- The
BlockFacethat was clicked
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceorg.bukkit.event.Cancellable
-
setCancelled
public void setCancelled(boolean cancel) - Specified by:
setCancelledin interfaceorg.bukkit.event.Cancellable
-
getHandlerList
@Nonnull public static org.bukkit.event.HandlerList getHandlerList() -
getHandlers
@Nonnull public org.bukkit.event.HandlerList getHandlers()- Specified by:
getHandlersin classorg.bukkit.event.Event
-