Class Gen2BellEvent

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

public abstract class Gen2BellEvent extends net.minecraftforge.eventbus.api.Event
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
    Gen2BellEvent Event fires whenever a bell spawn roll is about to be made.
    static class 
    Gen2BellEvent Event fires when a bell spawns a legendary.

    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 UUID
    The UUID of the player most relevant to the event.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Gen2BellEvent(UUID playerUUID)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.server.level.ServerPlayer
    Gets the player based off playerUUID.

    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

    • 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.