Class PokerusEvent.Spread.Pre
java.lang.Object
net.neoforged.bus.api.Event
com.pixelmonmod.pixelmon.api.events.PokerusEvent
com.pixelmonmod.pixelmon.api.events.PokerusEvent.Spread
com.pixelmonmod.pixelmon.api.events.PokerusEvent.Spread.Pre
- All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent
- Enclosing class:
PokerusEvent.Spread
public static class PokerusEvent.Spread.Pre
extends PokerusEvent.Spread
implements net.neoforged.bus.api.ICancellableEvent
Fires on the server before the Pokérus spreads from an opponent or from a party member.
Can be cancelled.
See
Spread(PlayerPartyStorage, PixelmonWrapper, PokerusStrain)
-
Nested Class Summary
Nested classes/interfaces inherited from class com.pixelmonmod.pixelmon.api.events.PokerusEvent.Spread
PokerusEvent.Spread.Post, PokerusEvent.Spread.Pre
Nested classes/interfaces inherited from class com.pixelmonmod.pixelmon.api.events.PokerusEvent
PokerusEvent.Cured, PokerusEvent.Spread
-
Field Summary
Fields inherited from class com.pixelmonmod.pixelmon.api.events.PokerusEvent.Spread
donorType, party, wrapper
-
Constructor Summary
ConstructorsConstructorDescriptionPre
(PlayerPartyStorage party, PixelmonWrapper wrapper, PokerusStrain donorType) -
Method Summary
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
- Parameters:
party
- The owner's storage.wrapper
- The wrapper of the Pokémon.donorType
- The Pokérus type of the donor, which is being reflected into the new Pokémon.
-