Class NPCTutorEvent.CollectLearnableMoves.Pre
java.lang.Object
net.neoforged.bus.api.Event
com.pixelmonmod.pixelmon.api.events.npc.NPCTutorEvent
com.pixelmonmod.pixelmon.api.events.npc.NPCTutorEvent.CollectLearnableMoves
com.pixelmonmod.pixelmon.api.events.npc.NPCTutorEvent.CollectLearnableMoves.Pre
- All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent
- Enclosing class:
NPCTutorEvent.CollectLearnableMoves
public static class NPCTutorEvent.CollectLearnableMoves.Pre
extends NPCTutorEvent.CollectLearnableMoves
implements net.neoforged.bus.api.ICancellableEvent
Fired just before the packet is sent
Cancelling this may cause some buggy behaviour
Use this event for modifying the list of learnable moves that a Pokemon can learn
-
Nested Class Summary
Nested classes/interfaces inherited from class com.pixelmonmod.pixelmon.api.events.npc.NPCTutorEvent.CollectLearnableMoves
NPCTutorEvent.CollectLearnableMoves.Post, NPCTutorEvent.CollectLearnableMoves.PreNested classes/interfaces inherited from class com.pixelmonmod.pixelmon.api.events.npc.NPCTutorEvent
NPCTutorEvent.CollectLearnableMoves -
Field Summary
Fields inherited from class com.pixelmonmod.pixelmon.api.events.npc.NPCTutorEvent.CollectLearnableMoves
learnableMoves, pokemonFields inherited from class com.pixelmonmod.pixelmon.api.events.npc.NPCTutorEvent
npc, player -
Constructor Summary
ConstructorsConstructorDescriptionPre(net.minecraft.world.entity.player.Player player, NPC npc, Pokemon pokemon, List<LearnableMove> learnableMoves) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddLearnableMoves(LearnableMove... moves) voidsetLearnableMoves(List<LearnableMove> learnableMoves) Methods inherited from class com.pixelmonmod.pixelmon.api.events.npc.NPCTutorEvent.CollectLearnableMoves
getLearnableMoves, getPokemonMethods inherited from class com.pixelmonmod.pixelmon.api.events.npc.NPCTutorEvent
getNpc, getPlayerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.neoforged.bus.api.ICancellableEvent
isCanceled, setCanceled
-
Constructor Details
-
Pre
public Pre(net.minecraft.world.entity.player.Player player, NPC npc, Pokemon pokemon, List<LearnableMove> learnableMoves)
-
-
Method Details
-
addLearnableMoves
-
setLearnableMoves
-