Class BagItemEvent.CollectItems.Pre

All Implemented Interfaces:
net.neoforged.bus.api.ICancellableEvent
Enclosing class:
BagItemEvent.CollectItems

public static class BagItemEvent.CollectItems.Pre extends BagItemEvent.CollectItems implements net.neoforged.bus.api.ICancellableEvent
Fired just before the response packet is sent to the client Cancelling this means the client will say there is 0 use-able items in the player's inventory for this bag section

Editing the list means items that aren't in the inventory will show up (so to then take the items you'd want to modify logic in BagItemEvent.SelectItem.Pre