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
ConstructorDescriptionPlayerPreResearchEvent
(Player p, Research research, SlimefunItem slimefunItem) -
Method Summary
Modifier and TypeMethodDescriptionstatic HandlerList
boolean
void
setCancelled
(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:
getHandlers
in classEvent
-
isCancelled
public boolean isCancelled()- Specified by:
isCancelled
in interfaceCancellable
-
setCancelled
public void setCancelled(boolean cancelled) - Specified by:
setCancelled
in interfaceCancellable
-