Class ResearchDiscardEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.research.event.ResearchDiscardEvent
- Direct Known Subclasses:
ResearchDiscardEvent.Post
,ResearchDiscardEvent.Pre
public abstract class ResearchDiscardEvent
extends net.minecraftforge.eventbus.api.Event
An event that is fired when a player discards a
This event is fired on the
PlayerResearch
.
This event is fired on the
Pixelmon.EVENT_BUS
.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
This event is fired after the research is discarded.static class
This event is fired before the research is discarded.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
ResearchDiscardEvent
(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
-
ResearchDiscardEvent
protected ResearchDiscardEvent(net.minecraft.server.level.ServerPlayer player, PlayerResearch research)
-
-
Method Details
-
getPlayer
public net.minecraft.server.level.ServerPlayer getPlayer() -
getResearch
-