Class ReminderMoveCleaner
java.lang.Object
com.pixelmonmod.pixelmon.api.entity.npc.ReminderMoveCleaner
Class for registering and then executing cleaning operations on the reminder move set within
Moveset
.
For now, this only deals with moves that should be fully forgotten after form change, but this may need to be
expanded upon if more cases where this needs to happen are found.- Since:
- 28/07/24
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
cleanForFormChange
(Pokemon pokemon) Removes moves from a given Pokémon's reminder moves based on its species and form.static void
cleanForFormChange
(Species species, Stats form, Moveset moveset) Removes moves from a given moveset's reminder moves based on the given species and form.static void
registerForFormChange
(RegistryValue<Species> species, String form, RegistryValue<ImmutableAttack>... toClean) Registers a new reminder move cleaner check for when a Pokémon changes form.static void
registerForFormChange
(Species species, Stats form, ImmutableAttack... toClean) Registers a new reminder move cleaner check for when a Pokémon changes form.
-
Method Details
-
registerForFormChange
@SafeVarargs public static void registerForFormChange(RegistryValue<Species> species, String form, RegistryValue<ImmutableAttack>... toClean) Registers a new reminder move cleaner check for when a Pokémon changes form. If a Pokémon changes from the given form, and has any of the given moves in its reminder move set, they will be removed.- Parameters:
species
- The species to register the cleaner check for.form
- The form to register the cleaner check for.toClean
- The moves to clean from the reminder move set.
-
registerForFormChange
Registers a new reminder move cleaner check for when a Pokémon changes form. If a Pokémon changes from the given form, and has any of the given moves in its reminder move set, they will be removed.- Parameters:
species
- The species to register the cleaner check for.form
- The form to register the cleaner check for.toClean
- The moves to clean from the reminder move set.
-
cleanForFormChange
Removes moves from a given Pokémon's reminder moves based on its species and form.- Parameters:
pokemon
- The Pokémon to clean.
-
cleanForFormChange
Removes moves from a given moveset's reminder moves based on the given species and form.- Parameters:
species
- The species to base the cleaning off of.form
- The form to base the cleaning off of.moveset
- The moveset to clean.
-