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

public class BackpackResupplyEvent extends BackpackEvent
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.
  • Constructor Details

    • BackpackResupplyEvent

      public BackpackResupplyEvent(net.minecraft.world.entity.player.Player player, IBackpackDefinition backpackDefinition, net.minecraft.world.Container backpackInventory)