Class PixelmonAdvancementEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.PixelmonAdvancementEvent
public class PixelmonAdvancementEvent
extends net.minecraftforge.eventbus.api.Event
Fires when a player earns a Pixelmon advancement
-
Nested Class Summary
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 TypeFieldDescriptionfinal net.minecraft.advancements.Advancement
The advancement being earned.final net.minecraft.server.level.ServerPlayer
The player who has earned the achievement -
Constructor Summary
ConstructorDescriptionPixelmonAdvancementEvent
(net.minecraft.server.level.ServerPlayer player, net.minecraft.advancements.Advancement advancement) -
Method Summary
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Field Details
-
advancement
public final net.minecraft.advancements.Advancement advancementThe advancement being earned. This will be an instance of one of the static advancement objects within PixelmonAdvancements.java -
player
public final net.minecraft.server.level.ServerPlayer playerThe player who has earned the achievement
-
-
Constructor Details
-
PixelmonAdvancementEvent
public PixelmonAdvancementEvent(net.minecraft.server.level.ServerPlayer player, net.minecraft.advancements.Advancement advancement)
-