Class Gen2BellEvent

java.lang.Object
net.neoforged.bus.api.Event
com.pixelmonmod.pixelmon.api.events.legendary.Gen2BellEvent
Direct Known Subclasses:
Gen2BellEvent.RollSuccessEvent, Gen2BellEvent.SummonLegendary

public abstract class Gen2BellEvent extends net.neoforged.bus.api.Event
  • Field Details

    • playerUUID

      public final UUID playerUUID
      The UUID of the player most relevant to the event.
  • Constructor Details

    • Gen2BellEvent

      public Gen2BellEvent(UUID playerUUID)
  • Method Details

    • getPlayer

      @Nullable public net.minecraft.server.level.ServerPlayer getPlayer()
      Gets the player based off playerUUID. Could be null in some cases where the player is offline.