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
Fired when a player sells an item to a shop.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic 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
-
Constructor Summary
ModifierConstructorDescriptionprotected
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
Methods inherited from class net.minecraftforge.eventbus.api.Event
getListenerList, getPhase, getResult, hasResult, isCancelable, isCanceled, setCanceled, setPhase, setResult
-
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()
-