Class DynamaxCandyEvent
java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.DynamaxCandyEvent
public class DynamaxCandyEvent
extends net.minecraftforge.eventbus.api.Event
Event fires whenever a Dynamax Candy is attempted to be used on a Pokémon.
This event will only fire if they are capable of taking a Dynamax Candy (Dynamax Level less than 10).
Canceling this event will prevent the interaction from both raising the Dynamax Level of 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
Modifier and TypeFieldDescriptionThe Pokémon the Dynamax Candy is being used onnet.minecraft.server.level.ServerPlayer
The player using the Dynamax Candy -
Constructor Summary
ConstructorDescriptionDynamaxCandyEvent
(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
-
Field Details
-
pixelmon
The Pokémon the Dynamax Candy is being used on -
player
public net.minecraft.server.level.ServerPlayer playerThe player using the Dynamax Candy
-
-
Constructor Details
-
DynamaxCandyEvent
-