Class PassiveHealEvent.Pre

java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.PassiveHealEvent
com.pixelmonmod.pixelmon.api.events.PassiveHealEvent.Pre
Enclosing class:
PassiveHealEvent

public static class PassiveHealEvent.Pre extends PassiveHealEvent
Fired when passive healing is doing random checks to see what it should heal. Cancelling will result in no passive healing. Changing the fields will change what is done to the Pokémon.
  • Constructor Details

    • Pre

      public Pre(net.minecraft.server.level.ServerPlayer player, Pokemon pokemon, boolean revive, boolean status, boolean heal)
  • Method Details

    • willRevive

      public boolean willRevive()
    • setWillRevive

      public void setWillRevive(boolean revive)
    • willCureStatus

      public boolean willCureStatus()
    • setWillCureStatus

      public void setWillCureStatus(boolean status)
    • willHeal

      public boolean willHeal()
    • setWillHeal

      public void setWillHeal(boolean heal)