Class ShopEvent.Sell

java.lang.Object
net.minecraftforge.eventbus.api.Event
com.pixelmonmod.pixelmon.api.events.ShopEvent
com.pixelmonmod.pixelmon.api.events.ShopEvent.Sell
Direct Known Subclasses:
ShopEvent.Sell.Post, ShopEvent.Sell.Pre
Enclosing class:
ShopEvent

public static class ShopEvent.Sell extends ShopEvent
Fired when a player sells an item to 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 inherited from class com.pixelmonmod.pixelmon.api.events.ShopEvent

    player, shop
  • Constructor Summary

    Constructors
    Modifier
    Constructor
    Description
    protected
    Sell(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
  • Constructor Details

    • Sell

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

    • getItem

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