Class LegendaryCheckSpawnsEvent

java.lang.Object
net.neoforged.bus.api.Event
com.pixelmonmod.pixelmon.api.events.spawning.LegendaryCheckSpawnsEvent

public class LegendaryCheckSpawnsEvent extends net.neoforged.bus.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.
  • 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)