Class PassiveHealEvent.Pre
java.lang.Object
net.neoforged.bus.api.Event
com.pixelmonmod.pixelmon.api.events.PassiveHealEvent
com.pixelmonmod.pixelmon.api.events.PassiveHealEvent.Pre
- All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent
- Enclosing class:
PassiveHealEvent
public static class PassiveHealEvent.Pre
extends PassiveHealEvent
implements net.neoforged.bus.api.ICancellableEvent
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.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.pixelmonmod.pixelmon.api.events.PassiveHealEvent
PassiveHealEvent.Post, PassiveHealEvent.Pre
-
Field Summary
Fields inherited from class com.pixelmonmod.pixelmon.api.events.PassiveHealEvent
pokemon
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
setWillCureStatus
(boolean status) void
setWillHeal
(boolean heal) void
setWillRevive
(boolean revive) boolean
boolean
willHeal()
boolean
Methods inherited from class com.pixelmonmod.pixelmon.api.events.PassiveHealEvent
getPlayer, getPokemon
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
-
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)
-