Package forestry.api.core.backpacks
Class BackpackResupplyEvent
java.lang.Object
net.neoforged.bus.api.Event
forestry.api.core.backpacks.BackpackEvent
forestry.api.core.backpacks.BackpackResupplyEvent
- All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent
Use @SubscribeEvent on a method taking this event as an argument. Will fire whenever a backpack tries to resupply to a player inventory. Processing will stop
if the event is canceled.
-
Field Summary
Fields inherited from class forestry.api.core.backpacks.BackpackEvent
backpackDefinition, backpackInventory, player -
Constructor Summary
ConstructorsConstructorDescriptionBackpackResupplyEvent(net.minecraft.world.entity.player.Player player, IBackpackDefinition backpackDefinition, net.minecraft.world.Container backpackInventory) -
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.neoforged.bus.api.ICancellableEvent
isCanceled, setCanceled
-
Constructor Details
-
BackpackResupplyEvent
public BackpackResupplyEvent(net.minecraft.world.entity.player.Player player, IBackpackDefinition backpackDefinition, net.minecraft.world.Container backpackInventory)
-