Class LegendaryCheckSpawnsEvent

java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.spawning.LegendaryCheckSpawnsEvent

public class LegendaryCheckSpawnsEvent extends net.minecraftforge.eventbus.api.Event
Event fired when someone uses /checkspawns legendary. While this event cannot be cancelled, you can make the time until the next spawn and the chance of a legendary spawn at the next attempt kept from the sender.
  • 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.commands.CommandSourceStack
    The CommandSourceStack using the command.
    boolean
    Whether or not the chance of success for the next spawn attempt will be displayed.
    boolean
    Whether or not the time until the next spawn attempt will be displayed.
  • Constructor Summary

    Constructors
    Constructor
    Description
    LegendaryCheckSpawnsEvent(net.minecraft.commands.CommandSourceStack sender)
     
  • 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

    • sender

      public final net.minecraft.commands.CommandSourceStack sender
      The CommandSourceStack using the command.
    • shouldShowTime

      public boolean shouldShowTime
      Whether or not the time until the next spawn attempt will be displayed. Defaults to true.
    • shouldShowChance

      public boolean shouldShowChance
      Whether or not the chance of success for the next spawn attempt will be displayed. Defaults to true.
  • Constructor Details

    • LegendaryCheckSpawnsEvent

      public LegendaryCheckSpawnsEvent(net.minecraft.commands.CommandSourceStack sender)