Uses of Interface
net.minecraftforge.items.IItemHandler
-
Packages that use IItemHandler Package Description net.minecraft.entity.player net.minecraft.tileentity net.minecraftforge.fluids net.minecraftforge.items net.minecraftforge.items.wrapper -
-
Uses of IItemHandler in net.minecraft.entity.player
Fields in net.minecraft.entity.player with type parameters of type IItemHandler Modifier and Type Field Description private LazyOptional<IItemHandler>PlayerEntity. playerEquipmentHandlerprivate LazyOptional<IItemHandler>PlayerEntity. playerJoinedHandlerprivate LazyOptional<IItemHandler>PlayerEntity. playerMainHandler -
Uses of IItemHandler in net.minecraft.tileentity
Methods in net.minecraft.tileentity that return IItemHandler Modifier and Type Method Description protected IItemHandlerHopperTileEntity. createUnSidedHandler()protected IItemHandlerLockableTileEntity. createUnSidedHandler()protected IItemHandlerShulkerBoxTileEntity. createUnSidedHandler() -
Uses of IItemHandler in net.minecraftforge.fluids
Methods in net.minecraftforge.fluids with parameters of type IItemHandler Modifier and Type Method Description static FluidActionResultFluidUtil. tryEmptyContainerAndStow(ItemStack container, IFluidHandler fluidDestination, IItemHandler inventory, int maxAmount, PlayerEntity 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, PlayerEntity 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.items Modifier and Type Interface Description interfaceIItemHandlerModifiableClasses in net.minecraftforge.items that implement IItemHandler Modifier and Type Class Description classItemStackHandlerclassVanillaHopperItemHandlerFields in net.minecraftforge.items declared as IItemHandler Modifier and Type Field Description private IItemHandlerSlotItemHandler. itemHandlerFields in net.minecraftforge.items with type parameters of type IItemHandler Modifier and Type Field Description static Capability<IItemHandler>CapabilityItemHandler. ITEM_HANDLER_CAPABILITYMethods in net.minecraftforge.items that return IItemHandler Modifier and Type Method Description IItemHandlerSlotItemHandler. getItemHandler()Methods in net.minecraftforge.items that return types with arguments of type IItemHandler Modifier and Type Method Description private static java.util.Optional<org.apache.commons.lang3.tuple.Pair<IItemHandler,java.lang.Object>>VanillaInventoryCodeHooks. getItemHandler(IHopper hopper, Direction hopperFacing)static java.util.Optional<org.apache.commons.lang3.tuple.Pair<IItemHandler,java.lang.Object>>VanillaInventoryCodeHooks. getItemHandler(World worldIn, double x, double y, double z, Direction side)Methods in net.minecraftforge.items with parameters of type IItemHandler Modifier and Type Method Description static intItemHandlerHelper. calcRedstoneFromInventory(IItemHandler inv)This method uses the standard vanilla algorithm to calculate a comparator output for how "full" the inventory is.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 ItemStackVanillaInventoryCodeHooks. insertStack(TileEntity source, java.lang.Object destination, IItemHandler destInventory, ItemStack stack, int slot)Copied from TileEntityHopper#insertStack and added capability supportprivate static booleanVanillaInventoryCodeHooks. isEmpty(IItemHandler itemHandler)private static booleanVanillaInventoryCodeHooks. isFull(IItemHandler itemHandler)private static ItemStackVanillaInventoryCodeHooks. putStackInInventoryAllSlots(TileEntity source, java.lang.Object destination, IItemHandler destInventory, ItemStack stack)Constructors in net.minecraftforge.items with parameters of type IItemHandler Constructor Description SlotItemHandler(IItemHandler itemHandler, int index, int xPosition, int yPosition) -
Uses of IItemHandler in net.minecraftforge.items.wrapper
Classes in net.minecraftforge.items.wrapper that implement IItemHandler Modifier and Type Class Description classCombinedInvWrapperclassEmptyHandlerclassEntityArmorInvWrapperExposes the armor inventory of anEntityLivingBaseas anIItemHandlerusingEntityLivingBase#getItemStackFromSlotandEntityLivingBase#setItemStackToSlot.classEntityEquipmentInvWrapperExposes the armor or hands inventory of anEntityLivingBaseas anIItemHandlerusingEntityLivingBase#getItemStackFromSlotandEntityLivingBase#setItemStackToSlot.classEntityHandsInvWrapperExposes the hands inventory of anEntityLivingBaseas anIItemHandlerusingEntityLivingBase#getItemStackFromSlotandEntityLivingBase#setItemStackToSlot.classInvWrapperclassPlayerArmorInvWrapperclassPlayerInvWrapperclassPlayerMainInvWrapperExposes the player inventory WITHOUT the armor inventory as IItemHandler.classPlayerOffhandInvWrapperclassRangedWrapperA wrapper that composes another IItemHandlerModifiable, exposing only a range of the composed slots.classSidedInvWrapperFields in net.minecraftforge.items.wrapper declared as IItemHandler Modifier and Type Field Description static IItemHandlerEmptyHandler. INSTANCE
-