Class ClaimResearchObjectiveEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.research.event.ClaimResearchObjectiveEvent
- Direct Known Subclasses:
ClaimResearchObjectiveEvent.Post
,ClaimResearchObjectiveEvent.Pre
public abstract class ClaimResearchObjectiveEvent
extends net.minecraftforge.eventbus.api.Event
An event that is fired when a player claims a
This event is fired on the
It is important to remember that this is not when they complete the objective, but when they claim the rewards.
PlayerResearchObjective
.
This event is fired on the
Pixelmon.EVENT_BUS
.
It is important to remember that this is not when they complete the objective, but when they claim the rewards.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
This event is fired after the player claims the rewards for the objective.static class
This event is fired before the player claims the rewards for the objective.Nested classes/interfaces inherited from class net.minecraftforge.eventbus.api.Event
net.minecraftforge.eventbus.api.Event.HasResult, net.minecraftforge.eventbus.api.Event.Result
-
Field Summary
Modifier and TypeFieldDescriptionprotected final PlayerResearchObjective
protected final net.minecraft.server.level.ServerPlayer
protected final PlayerResearch
protected final PlayerResearchStage
-
Constructor Summary
ModifierConstructorDescriptionprotected
ClaimResearchObjectiveEvent
(net.minecraft.server.level.ServerPlayer player, PlayerResearch research, PlayerResearchStage stage, PlayerResearchObjective objective) -
Method Summary
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Field Details
-
player
protected final net.minecraft.server.level.ServerPlayer player -
research
-
stage
-
objective
-
-
Constructor Details
-
ClaimResearchObjectiveEvent
protected ClaimResearchObjectiveEvent(net.minecraft.server.level.ServerPlayer player, PlayerResearch research, PlayerResearchStage stage, PlayerResearchObjective objective)
-
-
Method Details
-
getPlayer
public net.minecraft.server.level.ServerPlayer getPlayer() -
getResearch
-
getStage
-
getObjective
-