Class ResearchStartEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.research.event.ResearchStartEvent
- Direct Known Subclasses:
ResearchStartEvent.Post
,ResearchStartEvent.Pre
public abstract class ResearchStartEvent
extends net.minecraftforge.eventbus.api.Event
An event that is fired when a player starts a new
This event is fired on the
It is worth noting that the events will not fire for a player if they are given a research that is
Research
.
This event is fired on the
Pixelmon.EVENT_BUS
.
It is worth noting that the events will not fire for a player if they are given a research that is
Research.unique()
and they already have one started, or not Research.repeatable()
and they have already completed it.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
This event is fired after the research is started.static class
This event is fired before the research is started.Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Constructor Summary
ModifierConstructorDescriptionprotected
ResearchStartEvent
(net.minecraft.server.level.ServerPlayer player, PlayerResearch research) -
Method Summary
Modifier and TypeMethodDescriptionnet.minecraft.server.level.ServerPlayer
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Constructor Details
-
ResearchStartEvent
protected ResearchStartEvent(net.minecraft.server.level.ServerPlayer player, PlayerResearch research)
-
-
Method Details
-
getPlayer
public net.minecraft.server.level.ServerPlayer getPlayer() -
getResearch
-