Uses of Interface
net.neoforged.neoforge.items.IItemHandler
Packages that use IItemHandler
Package
Description
-
Uses of IItemHandler in net.neoforged.neoforge.capabilities
Fields in net.neoforged.neoforge.capabilities with type parameters of type IItemHandlerModifier and TypeFieldDescriptionstatic final BlockCapability<IItemHandler, @Nullable Direction> Capabilities.ItemHandler.BLOCKstatic final EntityCapability<IItemHandler, @Nullable Void> Capabilities.ItemHandler.ENTITYCapability for the inventory of an entity.static final EntityCapability<IItemHandler, @Nullable Direction> Capabilities.ItemHandler.ENTITY_AUTOMATIONCapability for an inventory of entity that should be accessible to automation, in the sense that droppers, hoppers, and similar modded devices will try to use it.static final ItemCapability<IItemHandler, @Nullable Void> Capabilities.ItemHandler.ITEM -
Uses of IItemHandler in net.neoforged.neoforge.fluids
Methods in net.neoforged.neoforge.fluids with parameters of type IItemHandlerModifier and TypeMethodDescriptionstatic FluidActionResultFluidUtil.tryEmptyContainerAndStow(ItemStack container, IFluidHandler fluidDestination, IItemHandler inventory, int maxAmount, @Nullable Player player, boolean doDrain) Takes an Fluid Container Item, tries to empty it into the fluid handler, and stows it in the given inventory.static FluidActionResultFluidUtil.tryFillContainerAndStow(ItemStack container, IFluidHandler fluidSource, IItemHandler inventory, int maxAmount, @Nullable Player player, boolean doFill) Takes an Fluid Container Item and tries to fill it from the given tank. -
Uses of IItemHandler in net.neoforged.neoforge.items
Subinterfaces of IItemHandler in net.neoforged.neoforge.itemsClasses in net.neoforged.neoforge.items that implement IItemHandlerModifier and TypeClassDescriptionclassVariant ofItemStackHandlerfor use with data components.classclassFields in net.neoforged.neoforge.items declared as IItemHandlerModifier and TypeFieldDescriptionprivate final @Nullable IItemHandlerContainerOrHandler.itemHandlerThe field for theitemHandlerrecord component.private final IItemHandlerSlotItemHandler.itemHandlerMethods in net.neoforged.neoforge.items that return IItemHandlerModifier and TypeMethodDescriptionItemHandlerCopySlot.getItemHandler()SlotItemHandler.getItemHandler()@Nullable IItemHandlerContainerOrHandler.itemHandler()Returns the value of theitemHandlerrecord component.Methods in net.neoforged.neoforge.items with parameters of type IItemHandlerModifier and TypeMethodDescriptionstatic intItemHandlerHelper.calcRedstoneFromInventory(@Nullable IItemHandler inv) This method uses the standard vanilla algorithm to calculate a comparator output for how "full" the inventory is.static booleanVanillaInventoryCodeHooks.extractHook(Hopper dest, IItemHandler handler) Tries to extract items from an item handler and insert them in the hopper.static booleanVanillaInventoryCodeHooks.insertHook(HopperBlockEntity hopper, IItemHandler itemHandler) Tries to insert a hopper's items into an item handler.static ItemStackItemHandlerHelper.insertItem(IItemHandler dest, ItemStack stack, boolean simulate) static ItemStackItemHandlerHelper.insertItemStacked(IItemHandler inventory, ItemStack stack, boolean simulate) Inserts the ItemStack into the inventory, filling up already present stacks first.private static booleanVanillaInventoryCodeHooks.isFull(IItemHandler itemHandler) Constructors in net.neoforged.neoforge.items with parameters of type IItemHandlerModifierConstructorDescriptionContainerOrHandler(@Nullable Container container, @Nullable IItemHandler itemHandler) Creates an instance of aContainerOrHandlerrecord class.ItemHandlerCopySlot(IItemHandler itemHandler, int index, int xPosition, int yPosition) SlotItemHandler(IItemHandler itemHandler, int index, int xPosition, int yPosition) -
Uses of IItemHandler in net.neoforged.neoforge.items.wrapper
Classes in net.neoforged.neoforge.items.wrapper that implement IItemHandlerModifier and TypeClassDescriptionclassclassclassExposes the armor inventory of anLivingEntityas anIItemHandlerusingLivingEntity.getItemBySlot(EquipmentSlot)andLivingEntity.setItemSlot(EquipmentSlot, ItemStack).classExposes the armor or hands inventory of anLivingEntityas anIItemHandlerusingLivingEntity.getItemBySlot(EquipmentSlot)andLivingEntity.setItemSlot(EquipmentSlot, ItemStack).classExposes the hands inventory of anLivingEntityas anIItemHandlerusingLivingEntity.getItemBySlot(EquipmentSlot)andLivingEntity.setItemSlot(EquipmentSlot, ItemStack).classAnIItemHandlerthat delegates each method to anotherIItemHandler.classclassclassclassExposes the player inventory WITHOUT the armor inventory as IItemHandler.classclassA wrapper that composes another IItemHandlerModifiable, exposing only a range of the composed slots.classFields in net.neoforged.neoforge.items.wrapper declared as IItemHandlerModifier and TypeFieldDescriptionstatic final IItemHandlerEmptyItemHandler.INSTANCEprotected final IItemHandlerRecipeWrapper.invFields in net.neoforged.neoforge.items.wrapper with type parameters of type IItemHandlerModifier and TypeFieldDescriptionprotected final Supplier<IItemHandler> ForwardingItemHandler.delegateConstructors in net.neoforged.neoforge.items.wrapper with parameters of type IItemHandlerConstructor parameters in net.neoforged.neoforge.items.wrapper with type arguments of type IItemHandler