Class ShopEvent.Sell
java.lang.Object
net.neoforged.bus.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
Fired when a player sells an item to a shop.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
Nested classes/interfaces inherited from class com.pixelmonmod.pixelmon.api.events.ShopEvent
ShopEvent.Purchase, ShopEvent.Sell
-
Field Summary
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Sell
(net.minecraft.server.level.ServerPlayer player, ShopBuilder shop, net.minecraft.world.item.ItemStack item) -
Method Summary
Methods inherited from class com.pixelmonmod.pixelmon.api.events.ShopEvent
getBlockPos, getEntity, getPlayer, getShop
-
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()
-