Class SlimefunGuideOpenEvent

java.lang.Object
org.bukkit.event.Event
io.github.thebusybiscuit.slimefun4.api.events.SlimefunGuideOpenEvent
All Implemented Interfaces:
org.bukkit.event.Cancellable

public class SlimefunGuideOpenEvent extends org.bukkit.event.Event implements org.bukkit.event.Cancellable
This Event is called whenever a Player tries to open the Slimefun Guide book.
Author:
Linox
See Also:
  • Constructor Details

    • SlimefunGuideOpenEvent

      public SlimefunGuideOpenEvent(@Nonnull org.bukkit.entity.Player p, @Nonnull org.bukkit.inventory.ItemStack guide, @Nonnull SlimefunGuideMode layout)
  • Method Details

    • getPlayer

      @Nonnull public org.bukkit.entity.Player getPlayer()
      This returns the Player that tries to open the Slimefun Guide.
      Returns:
      The Player
    • getGuide

      @Nonnull public org.bukkit.inventory.ItemStack getGuide()
      This returns the ItemStack that Player tries to open the Slimefun Guide with.
      Returns:
      The ItemStack
    • getGuideLayout

      @Nonnull public SlimefunGuideMode getGuideLayout()
      This returns the SlimefunGuideMode of the Slimefun Guide that Player tries to open.
      Returns:
      The SlimefunGuideMode
    • setGuideLayout

      public void setGuideLayout(@Nonnull SlimefunGuideMode layout)
      Changes the SlimefunGuideMode that was tried to be opened with.
      Parameters:
      layout - The new SlimefunGuideMode
    • 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