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
This Event is called when a Player interacts with a MultiBlock.
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

    Constructors
    Constructor
    Description
    MultiBlockInteractEvent(org.bukkit.entity.Player p, MultiBlock mb, org.bukkit.block.Block clicked, org.bukkit.block.BlockFace face)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    org.bukkit.block.Block
    This returns the specific Block that was interacted with.
    org.bukkit.block.BlockFace
    This returns the BlockFace that was clicked.
    static org.bukkit.event.HandlerList
     
    org.bukkit.event.HandlerList
     
    This method returns the MultiBlock 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      @Nonnull public MultiBlock getMultiBlock()
      This method returns the MultiBlock which was interacted with.
      Returns:
      The MultiBlock of this MultiBlockInteractEvent
    • getClickedBlock

      @Nonnull public org.bukkit.block.Block getClickedBlock()
      This returns the specific Block that was interacted with.
      Returns:
      The Block that was clicked
    • getClickedFace

      @Nonnull public org.bukkit.block.BlockFace getClickedFace()
      This returns the BlockFace that was clicked.
      Returns:
      The BlockFace that was clicked
    • isCancelled

      public boolean isCancelled()
      Specified by:
      isCancelled in interface org.bukkit.event.Cancellable
    • setCancelled

      public void setCancelled(boolean cancel)
      Specified by:
      setCancelled in interface org.bukkit.event.Cancellable
    • getHandlerList

      @Nonnull public static org.bukkit.event.HandlerList getHandlerList()
    • getHandlers

      @Nonnull public org.bukkit.event.HandlerList getHandlers()
      Specified by:
      getHandlers in class org.bukkit.event.Event