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
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
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
Fields inherited from class com.pixelmonmod.pixelmon.api.events.PassiveHealEvent
pokemon
-
Constructor Summary
-
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 net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
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)
-