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
Fired when a player buys an item from 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
Purchase
(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
-
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()
-