Class ShopEvent.Purchase

java.lang.Object
net.neoforged.bus.api.Event
com.pixelmonmod.pixelmon.api.events.ShopEvent
com.pixelmonmod.pixelmon.api.events.ShopEvent.Purchase
Direct Known Subclasses:
ShopEvent.Purchase.Post, ShopEvent.Purchase.Pre
Enclosing class:
ShopEvent

public static class ShopEvent.Purchase extends ShopEvent
Fired when a player buys an item from a shop.
  • Field Details

    • item

      protected net.minecraft.world.item.ItemStack item
  • Constructor Details

    • Purchase

      protected Purchase(net.minecraft.server.level.ServerPlayer player, ShopBuilder shop, net.minecraft.world.item.ItemStack item)
  • Method Details

    • getItem

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