Class MaxSoupEvent

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

public class MaxSoupEvent extends net.minecraftforge.eventbus.api.Event
Event fires whenever a Max Soup is attempted to be used on a Pokémon. This event will only fire if they are capable of taking a Max Soup. Canceling this event will prevent the interaction from both granting the Gigantamax Factor to the Pokémon and also from consuming the item.
  • 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
    The Pokémon the Max Soup is being used on
    net.minecraft.server.level.ServerPlayer
    The player using the Max Soup
  • Constructor Summary

    Constructors
    Constructor
    Description
    MaxSoupEvent(net.minecraft.server.level.ServerPlayer player, PixelmonEntity pixelmon)
     
  • 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

    • pixelmon

      public PixelmonEntity pixelmon
      The Pokémon the Max Soup is being used on
    • player

      public net.minecraft.server.level.ServerPlayer player
      The player using the Max Soup
  • Constructor Details

    • MaxSoupEvent

      public MaxSoupEvent(net.minecraft.server.level.ServerPlayer player, PixelmonEntity pixelmon)