Class PixelmonFaintEvent.Pre

java.lang.Object
net.neoforged.bus.api.Event
com.pixelmonmod.pixelmon.api.events.PixelmonFaintEvent
com.pixelmonmod.pixelmon.api.events.PixelmonFaintEvent.Pre
All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent
Enclosing class:
PixelmonFaintEvent

public static class PixelmonFaintEvent.Pre extends PixelmonFaintEvent implements net.neoforged.bus.api.ICancellableEvent
Fired before the fainting occurs Cancelling this will prevent the health going invalid input: '<'= 0
  • Constructor Details

    • Pre

      public Pre(@Nullable net.minecraft.server.level.ServerPlayer player, Pokemon pokemon)