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
ConstructorsConstructorDescriptionMultiBlockInteractEvent(Player p, MultiBlock mb, Block clicked, BlockFace face) -
Method Summary
Modifier and TypeMethodDescriptionThis returns the specificBlockthat was interacted with.This returns theBlockFacethat was clicked.static 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
getEventName, isAsynchronous
-
Constructor Details
-
MultiBlockInteractEvent
@ParametersAreNonnullByDefault public MultiBlockInteractEvent(Player p, MultiBlock mb, Block clicked, BlockFace face)
-
-
Method Details
-
getMultiBlock
This method returns theMultiBlockwhich was interacted with.- Returns:
- The
MultiBlockof thisMultiBlockInteractEvent
-
getClickedBlock
This returns the specificBlockthat was interacted with.- Returns:
- The
Blockthat was clicked
-
getClickedFace
This returns theBlockFacethat was clicked.- Returns:
- The
BlockFacethat was clicked
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceCancellable
-
setCancelled
public void setCancelled(boolean cancel) - Specified by:
setCancelledin interfaceCancellable
-
getHandlerList
-
getHandlers
- Specified by:
getHandlersin classEvent
-