Uses of Interface
net.minecraftforge.items.IItemHandler
Packages that use IItemHandler
Package
Description
-
Uses of IItemHandler in net.minecraft.world.entity.player
Fields in net.minecraft.world.entity.player with type parameters of type IItemHandlerModifier and TypeFieldDescriptionprivate final LazyOptional<IItemHandler>
Player.playerEquipmentHandler
private final LazyOptional<IItemHandler>
Player.playerJoinedHandler
private final LazyOptional<IItemHandler>
Player.playerMainHandler
-
Uses of IItemHandler in net.minecraft.world.level.block.entity
Methods in net.minecraft.world.level.block.entity that return IItemHandlerModifier and TypeMethodDescriptionprotected IItemHandler
BaseContainerBlockEntity.createUnSidedHandler()
protected IItemHandler
ChiseledBookShelfBlockEntity.createUnSidedHandler()
protected IItemHandler
HopperBlockEntity.createUnSidedHandler()
protected IItemHandler
ShulkerBoxBlockEntity.createUnSidedHandler()
-
Uses of IItemHandler in net.minecraftforge.common.capabilities
Fields in net.minecraftforge.common.capabilities with type parameters of type IItemHandlerModifier and TypeFieldDescriptionstatic final Capability<IItemHandler>
ForgeCapabilities.ITEM_HANDLER
-
Uses of IItemHandler in net.minecraftforge.fluids
Methods in net.minecraftforge.fluids with parameters of type IItemHandlerModifier and TypeMethodDescriptionstatic @NotNull FluidActionResult
FluidUtil.tryEmptyContainerAndStow
(@NotNull 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 @NotNull FluidActionResult
FluidUtil.tryFillContainerAndStow
(@NotNull 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.minecraftforge.items
Subinterfaces of IItemHandler in net.minecraftforge.itemsClasses in net.minecraftforge.items that implement IItemHandlerFields in net.minecraftforge.items declared as IItemHandlerMethods in net.minecraftforge.items that return IItemHandlerMethods in net.minecraftforge.items that return types with arguments of type IItemHandlerModifier and TypeMethodDescriptionstatic Optional<org.apache.commons.lang3.tuple.Pair<IItemHandler,
Object>> VanillaInventoryCodeHooks.getItemHandler
(Level worldIn, double x, double y, double z, Direction side) private static Optional<org.apache.commons.lang3.tuple.Pair<IItemHandler,
Object>> VanillaInventoryCodeHooks.getItemHandler
(Level level, Hopper hopper, Direction hopperFacing) Methods in net.minecraftforge.items with parameters of type IItemHandlerModifier and TypeMethodDescriptionstatic int
ItemHandlerHelper.calcRedstoneFromInventory
(@Nullable IItemHandler inv) This method uses the standard vanilla algorithm to calculate a comparator output for how "full" the inventory is.static @NotNull ItemStack
ItemHandlerHelper.insertItem
(IItemHandler dest, @NotNull ItemStack stack, boolean simulate) static @NotNull ItemStack
ItemHandlerHelper.insertItemStacked
(IItemHandler inventory, @NotNull ItemStack stack, boolean simulate) Inserts the ItemStack into the inventory, filling up already present stacks first.private static ItemStack
VanillaInventoryCodeHooks.insertStack
(BlockEntity source, Object destination, IItemHandler destInventory, ItemStack stack, int slot) Copied from TileEntityHopper#insertStack and added capability supportprivate static boolean
VanillaInventoryCodeHooks.isEmpty
(IItemHandler itemHandler) private static boolean
VanillaInventoryCodeHooks.isFull
(IItemHandler itemHandler) private static ItemStack
VanillaInventoryCodeHooks.putStackInInventoryAllSlots
(BlockEntity source, Object destination, IItemHandler destInventory, ItemStack stack) Constructors in net.minecraftforge.items with parameters of type IItemHandlerModifierConstructorDescriptionSlotItemHandler
(IItemHandler itemHandler, int index, int xPosition, int yPosition) -
Uses of IItemHandler in net.minecraftforge.items.wrapper
Classes in net.minecraftforge.items.wrapper that implement IItemHandlerModifier and TypeClassDescriptionclass
class
class
Exposes the armor inventory of anLivingEntity
as anIItemHandler
usingLivingEntity.getItemBySlot(EquipmentSlot)
andLivingEntity.setItemSlot(EquipmentSlot, ItemStack)
.class
Exposes the armor or hands inventory of anLivingEntity
as anIItemHandler
usingLivingEntity.getItemBySlot(EquipmentSlot)
andLivingEntity.setItemSlot(EquipmentSlot, ItemStack)
.class
Exposes the hands inventory of anLivingEntity
as anIItemHandler
usingLivingEntity.getItemBySlot(EquipmentSlot)
andLivingEntity.setItemSlot(EquipmentSlot, ItemStack)
.class
class
class
class
Exposes the player inventory WITHOUT the armor inventory as IItemHandler.class
class
A wrapper that composes another IItemHandlerModifiable, exposing only a range of the composed slots.class
class
Fields in net.minecraftforge.items.wrapper declared as IItemHandlerFields in net.minecraftforge.items.wrapper with type parameters of type IItemHandlerModifier and TypeFieldDescriptionprivate final LazyOptional<IItemHandler>
ShulkerItemStackInvWrapper.holder