Class TeachMoveEvent.MoveLearnt.Pre
java.lang.Object
net.neoforged.bus.api.Event
com.pixelmonmod.pixelmon.api.events.npc.TeachMoveEvent
com.pixelmonmod.pixelmon.api.events.npc.TeachMoveEvent.MoveLearnt
com.pixelmonmod.pixelmon.api.events.npc.TeachMoveEvent.MoveLearnt.Pre
- All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent
- Enclosing class:
TeachMoveEvent.MoveLearnt
public static class TeachMoveEvent.MoveLearnt.Pre
extends TeachMoveEvent.MoveLearnt
implements net.neoforged.bus.api.ICancellableEvent
Before any costs are taken or moves are taught
Cancelling this will cancel the move being learnt
-
Nested Class Summary
Nested classes/interfaces inherited from class com.pixelmonmod.pixelmon.api.events.npc.TeachMoveEvent.MoveLearnt
TeachMoveEvent.MoveLearnt.Post, TeachMoveEvent.MoveLearnt.Pre
Nested classes/interfaces inherited from class com.pixelmonmod.pixelmon.api.events.npc.TeachMoveEvent
TeachMoveEvent.CanLearnMove, TeachMoveEvent.MoveLearnt
-
Field Summary
Fields inherited from class com.pixelmonmod.pixelmon.api.events.npc.TeachMoveEvent.MoveLearnt
attack, npc
Fields inherited from class com.pixelmonmod.pixelmon.api.events.npc.TeachMoveEvent
player, pokemon
-
Constructor Summary
ConstructorsConstructorDescriptionPre
(net.minecraft.world.entity.player.Player player, Pokemon pokemon, NPC npc, ImmutableAttack attack) -
Method Summary
Methods inherited from class com.pixelmonmod.pixelmon.api.events.npc.TeachMoveEvent.MoveLearnt
getAttack, getNpc
Methods inherited from class com.pixelmonmod.pixelmon.api.events.npc.TeachMoveEvent
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.world.entity.player.Player player, Pokemon pokemon, NPC npc, ImmutableAttack attack)
-