Class ShopEvent.Purchase.Pre
java.lang.Object
net.neoforged.bus.api.Event
com.pixelmonmod.pixelmon.api.events.ShopEvent
com.pixelmonmod.pixelmon.api.events.ShopEvent.Purchase
com.pixelmonmod.pixelmon.api.events.ShopEvent.Purchase.Pre
- All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent
- Enclosing class:
ShopEvent.Purchase
public static class ShopEvent.Purchase.Pre
extends ShopEvent.Purchase
implements net.neoforged.bus.api.ICancellableEvent
-
Nested Class Summary
Nested classes/interfaces inherited from class com.pixelmonmod.pixelmon.api.events.ShopEvent.Purchase
ShopEvent.Purchase.Post, ShopEvent.Purchase.Pre
Nested classes/interfaces inherited from class com.pixelmonmod.pixelmon.api.events.ShopEvent
ShopEvent.Purchase, ShopEvent.Sell
-
Field Summary
Fields inherited from class com.pixelmonmod.pixelmon.api.events.ShopEvent.Purchase
item
-
Constructor Summary
ConstructorsConstructorDescriptionPre
(net.minecraft.server.level.ServerPlayer player, ShopBuilder shop, net.minecraft.world.item.ItemStack item) -
Method Summary
Modifier and TypeMethodDescriptionvoid
setItem
(@Nullable net.minecraft.world.item.ItemStack item) Methods inherited from class com.pixelmonmod.pixelmon.api.events.ShopEvent.Purchase
getItem
Methods inherited from class com.pixelmonmod.pixelmon.api.events.ShopEvent
getBlockPos, getEntity, getPlayer, getShop
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.neoforged.bus.api.ICancellableEvent
isCanceled, setCanceled
-
Constructor Details
-
Pre
public Pre(net.minecraft.server.level.ServerPlayer player, ShopBuilder shop, net.minecraft.world.item.ItemStack item)
-
-
Method Details
-
setItem
public void setItem(@Nullable @Nullable net.minecraft.world.item.ItemStack item)
-