Class HeldItemChangedEvent.Post
java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.HeldItemChangedEvent
com.pixelmonmod.pixelmon.api.events.HeldItemChangedEvent.Post
- Enclosing class:
- HeldItemChangedEvent
Event fired after a Pokémon's held item is changed. Cannot be cancelled
player - The player the item is being changed for
pokemon - The pokemon the item is being changed on
newHeldItem - The item that is being held. Cannot be modified at this stage
-
Nested Class Summary
Nested classes/interfaces inherited from class com.pixelmonmod.pixelmon.api.events.HeldItemChangedEvent
HeldItemChangedEvent.Post, HeldItemChangedEvent.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.HeldItemChangedEvent
heldItem, player, pokemon
-
Constructor Summary
-
Method Summary
Methods inherited from class com.pixelmonmod.pixelmon.api.events.HeldItemChangedEvent
getHeldItem, getPlayer, getPokemon, getSpecies
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
Constructor Details
-
Post
public Post(@Nullable net.minecraft.server.level.ServerPlayer player, Pokemon pokemon, net.minecraft.world.item.ItemStack newHeldItem)
-