Class ShopEvent.Purchase

java.lang.Object
net.minecraftforge.eventbus.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.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Class
    Description
    static class 
     
    static class 
     

    Nested classes/interfaces inherited from class com.pixelmonmod.pixelmon.api.events.ShopEvent

    ShopEvent.Purchase, ShopEvent.Sell

    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
    Modifier and Type
    Field
    Description
    protected net.minecraft.world.item.ItemStack
     

    Fields inherited from class com.pixelmonmod.pixelmon.api.events.ShopEvent

    player, shop
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Purchase(net.minecraft.server.level.ServerPlayer player, ShopBuilder shop, net.minecraft.world.item.ItemStack item)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.item.ItemStack
     

    Methods inherited from class com.pixelmonmod.pixelmon.api.events.ShopEvent

    getBlockPos, getEntity, getPlayer, getShop

    Methods inherited from class net.minecraftforge.eventbus.api.Event

    getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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()