Class ItemStackMultiHandler
java.lang.Object
net.neoforged.neoforge.items.wrapper.CombinedInvWrapper
team.lodestar.lodestone.modules.toolkit.inventory.ItemStackMultiHandler
- All Implemented Interfaces:
net.neoforged.neoforge.items.IItemHandler,net.neoforged.neoforge.items.IItemHandlerModifiable
public class ItemStackMultiHandler
extends net.neoforged.neoforge.items.wrapper.CombinedInvWrapper
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final com.google.common.collect.ImmutableList<LodestoneItemStackHandler> protected intFields inherited from class net.neoforged.neoforge.items.wrapper.CombinedInvWrapper
baseIndex, itemHandler, slotCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.google.common.collect.ImmutableList<LodestoneItemStackHandler> booleaninteract(net.minecraft.server.level.ServerLevel level, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand) interact(net.minecraft.server.level.ServerLevel level, LodestoneItemStackHandler handler, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand) Methods inherited from class net.neoforged.neoforge.items.wrapper.CombinedInvWrapper
extractItem, getHandlerFromIndex, getIndexForSlot, getSlotFromIndex, getSlotLimit, getSlots, getStackInSlot, insertItem, isItemValid, setStackInSlot
-
Field Details
-
inventories
-
recentInteractionIndex
protected int recentInteractionIndex
-
-
Constructor Details
-
ItemStackMultiHandler
-
-
Method Details
-
getInventories
-
interact
public boolean interact(net.minecraft.server.level.ServerLevel level, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand) -
interact
public Optional<InventoryInteractionResult> interact(net.minecraft.server.level.ServerLevel level, LodestoneItemStackHandler handler, net.minecraft.world.entity.player.Player player, net.minecraft.world.InteractionHand hand)
-