Class ItemFormChangeEvent

java.lang.Object
net.neoforged.bus.api.Event
com.pixelmonmod.pixelmon.api.events.pokemon.ItemFormChangeEvent
Direct Known Subclasses:
ItemFormChangeEvent.Post, ItemFormChangeEvent.Pre

public abstract class ItemFormChangeEvent extends net.neoforged.bus.api.Event
  • Field Details

    • player

      protected final net.minecraft.server.level.ServerPlayer player
    • item

      protected final net.minecraft.world.item.ItemStack item
    • pokemon

      protected final PixelmonEntity pokemon
    • isFusion

      protected final boolean isFusion
    • fusion

      @Nullable protected Pokemon fusion
  • Constructor Details

    • ItemFormChangeEvent

      protected ItemFormChangeEvent(net.minecraft.server.level.ServerPlayer player, net.minecraft.world.item.ItemStack item, PixelmonEntity pokemon, @Nullable Pokemon fusion)
    • ItemFormChangeEvent

      protected ItemFormChangeEvent(net.minecraft.server.level.ServerPlayer player, net.minecraft.world.item.ItemStack item, PixelmonEntity pokemon)
  • Method Details

    • getPlayer

      public net.minecraft.server.level.ServerPlayer getPlayer()
    • getItem

      public net.minecraft.world.item.ItemStack getItem()
    • getPokemon

      public PixelmonEntity getPokemon()
    • isFusion

      public boolean isFusion()
    • getFusion

      @Nullable public Pokemon getFusion()