Class PlayerPreResearchEvent
java.lang.Object
org.bukkit.event.Event
io.github.thebusybiscuit.slimefun4.api.events.PlayerPreResearchEvent
- All Implemented Interfaces:
Cancellable
This
Event is called whenever a Player clicks to unlock a Research.
This is called before Research.canUnlock(Player).
The Event is not called for CheatSheetSlimefunGuide.- Author:
- uiytt
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class org.bukkit.event.Event
Event.Result -
Constructor Summary
ConstructorsConstructorDescriptionPlayerPreResearchEvent(Player p, Research research, SlimefunItem slimefunItem) -
Method Summary
Modifier and TypeMethodDescriptionstatic HandlerListbooleanvoidsetCancelled(boolean cancelled) Methods inherited from class org.bukkit.event.Event
getEventName, isAsynchronous
-
Constructor Details
-
PlayerPreResearchEvent
@ParametersAreNonnullByDefault public PlayerPreResearchEvent(Player p, Research research, SlimefunItem slimefunItem)
-
-
Method Details
-
getPlayer
-
getResearch
-
getSlimefunItem
-
getHandlerList
-
getHandlers
- Specified by:
getHandlersin classEvent
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelledin interfaceCancellable
-
setCancelled
public void setCancelled(boolean cancelled) - Specified by:
setCancelledin interfaceCancellable
-