Class MaxSoupEvent
java.lang.Object
net.neoforged.bus.api.Event
com.pixelmonmod.pixelmon.api.events.MaxSoupEvent
- All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent
public class MaxSoupEvent
extends net.neoforged.bus.api.Event
implements net.neoforged.bus.api.ICancellableEvent
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.
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe Pokémon the Max Soup is being used onnet.minecraft.server.level.ServerPlayer
The player using the Max Soup -
Constructor Summary
ConstructorsConstructorDescriptionMaxSoupEvent
(net.minecraft.server.level.ServerPlayer player, PixelmonEntity pixelmon) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.neoforged.bus.api.ICancellableEvent
isCanceled, setCanceled
-
Field Details
-
pixelmon
The Pokémon the Max Soup is being used on -
player
public net.minecraft.server.level.ServerPlayer playerThe player using the Max Soup
-
-
Constructor Details
-
MaxSoupEvent
-