Class SlimefunGuideOpenEvent
java.lang.Object
org.bukkit.event.Event
io.github.thebusybiscuit.slimefun4.api.events.SlimefunGuideOpenEvent
- All Implemented Interfaces:
Cancellable
- Author:
- Linox
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetGuide()
This returns theSlimefunGuideMode
of the Slimefun Guide thatPlayer
tries to open.static HandlerList
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
getEventName, isAsynchronous
-
Constructor Details
-
SlimefunGuideOpenEvent
public SlimefunGuideOpenEvent(@Nonnull Player p, @Nonnull ItemStack guide, @Nonnull SlimefunGuideMode layout)
-
-
Method Details
-
getPlayer
This returns thePlayer
that tries to open the Slimefun Guide.- Returns:
- The
Player
-
getGuide
- 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 interfaceCancellable
-
setCancelled
public void setCancelled(boolean cancel) - Specified by:
setCancelled
in interfaceCancellable
-
getHandlerList
-
getHandlers
- Specified by:
getHandlers
in classEvent
-