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:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
org.bukkit.event.Event.Result
-
Constructor Summary
ConstructorsConstructorDescriptionSlimefunGuideOpenEvent
(org.bukkit.entity.Player p, org.bukkit.inventory.ItemStack guide, SlimefunGuideMode layout) -
Method Summary
Modifier and TypeMethodDescriptionorg.bukkit.inventory.ItemStack
getGuide()
This returns theItemStack
thatPlayer
tries to open the Slimefun Guide with.This returns theSlimefunGuideMode
of the Slimefun Guide thatPlayer
tries to open.static org.bukkit.event.HandlerList
org.bukkit.event.HandlerList
org.bukkit.entity.Player
This returns thePlayer
that tries to open the Slimefun Guide.boolean
void
setCancelled
(boolean cancel) void
setGuideLayout
(SlimefunGuideMode layout) Changes theSlimefunGuideMode
that was tried to be opened with.Methods inherited from class org.bukkit.event.Event
callEvent, getEventName, isAsynchronous
-
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 thePlayer
that tries to open the Slimefun Guide.- Returns:
- The
Player
-
getGuide
@Nonnull public org.bukkit.inventory.ItemStack getGuide()This returns theItemStack
thatPlayer
tries to open the Slimefun Guide with.- Returns:
- The
ItemStack
-
getGuideLayout
This returns theSlimefunGuideMode
of the Slimefun Guide thatPlayer
tries to open.- Returns:
- The
SlimefunGuideMode
-
setGuideLayout
Changes theSlimefunGuideMode
that was tried to be opened with.- Parameters:
layout
- The newSlimefunGuideMode
-
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
-