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
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetGuide()This returns theSlimefunGuideModeof the Slimefun Guide thatPlayertries to open.static HandlerListThis returns thePlayerthat tries to open the Slimefun Guide.booleanvoidsetCancelled(boolean cancel) voidsetGuideLayout(SlimefunGuideMode layout) Changes theSlimefunGuideModethat 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 thePlayerthat tries to open the Slimefun Guide.- Returns:
- The
Player
-
getGuide
- Returns:
- The
ItemStack
-
getGuideLayout
This returns theSlimefunGuideModeof the Slimefun Guide thatPlayertries to open.- Returns:
- The
SlimefunGuideMode
-
setGuideLayout
Changes theSlimefunGuideModethat was tried to be opened with.- Parameters:
layout- The newSlimefunGuideMode
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceCancellable
-
setCancelled
public void setCancelled(boolean cancel) - Specified by:
setCancelledin interfaceCancellable
-
getHandlerList
-
getHandlers
- Specified by:
getHandlersin classEvent
-