Class ItemReturnInvWrapper

java.lang.Object
net.minecraftforge.items.wrapper.RangedWrapper
net.minecraftforge.items.wrapper.PlayerMainInvWrapper
com.simibubi.create.content.curiosities.toolbox.ItemReturnInvWrapper
All Implemented Interfaces:
net.minecraftforge.items.IItemHandler, net.minecraftforge.items.IItemHandlerModifiable

public class ItemReturnInvWrapper extends net.minecraftforge.items.wrapper.PlayerMainInvWrapper
For inserting items into a players' inventory anywhere except the hotbar
  • Constructor Summary

    Constructors
    Constructor
    Description
    ItemReturnInvWrapper(net.minecraft.world.entity.player.Inventory inv)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.item.ItemStack
    insertItem(int slot, net.minecraft.world.item.ItemStack stack, boolean simulate)
     

    Methods inherited from class net.minecraftforge.items.wrapper.PlayerMainInvWrapper

    getInventoryPlayer

    Methods inherited from class net.minecraftforge.items.wrapper.RangedWrapper

    extractItem, getSlotLimit, getSlots, getStackInSlot, isItemValid, setStackInSlot

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ItemReturnInvWrapper

      public ItemReturnInvWrapper(net.minecraft.world.entity.player.Inventory inv)
  • Method Details

    • insertItem

      public net.minecraft.world.item.ItemStack insertItem(int slot, net.minecraft.world.item.ItemStack stack, boolean simulate)
      Specified by:
      insertItem in interface net.minecraftforge.items.IItemHandler
      Overrides:
      insertItem in class net.minecraftforge.items.wrapper.PlayerMainInvWrapper