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

    Fields
    Modifier and Type
    Field
    Description
    final net.minecraft.advancements.Advancement
    The advancement being earned.
    final net.minecraft.server.level.ServerPlayer
    The player who has earned the achievement
  • Constructor Summary

    Constructors
    Constructor
    Description
    PixelmonAdvancementEvent(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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • advancement

      public final net.minecraft.advancements.Advancement advancement
      The 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 player
      The player who has earned the achievement
  • Constructor Details

    • PixelmonAdvancementEvent

      public PixelmonAdvancementEvent(net.minecraft.server.level.ServerPlayer player, net.minecraft.advancements.Advancement advancement)