Class ItemHandlerWrapper

java.lang.Object
com.simibubi.create.foundation.item.ItemHandlerWrapper
All Implemented Interfaces:
net.minecraftforge.items.IItemHandler, net.minecraftforge.items.IItemHandlerModifiable

public class ItemHandlerWrapper extends Object implements net.minecraftforge.items.IItemHandlerModifiable
  • Constructor Summary

    Constructors
    Constructor
    Description
    ItemHandlerWrapper​(net.minecraftforge.items.IItemHandlerModifiable wrapped)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    net.minecraft.world.item.ItemStack
    extractItem​(int slot, int amount, boolean simulate)
     
    int
    getSlotLimit​(int slot)
     
    int
     
    net.minecraft.world.item.ItemStack
    getStackInSlot​(int slot)
     
    net.minecraft.world.item.ItemStack
    insertItem​(int slot, net.minecraft.world.item.ItemStack stack, boolean simulate)
     
    boolean
    isItemValid​(int slot, net.minecraft.world.item.ItemStack stack)
     
    void
    setStackInSlot​(int slot, net.minecraft.world.item.ItemStack stack)
     

    Methods inherited from class java.lang.Object

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

    • ItemHandlerWrapper

      public ItemHandlerWrapper(net.minecraftforge.items.IItemHandlerModifiable wrapped)
  • Method Details

    • getSlots

      public int getSlots()
      Specified by:
      getSlots in interface net.minecraftforge.items.IItemHandler
    • getStackInSlot

      public net.minecraft.world.item.ItemStack getStackInSlot(int slot)
      Specified by:
      getStackInSlot in interface net.minecraftforge.items.IItemHandler
    • 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
    • extractItem

      public net.minecraft.world.item.ItemStack extractItem(int slot, int amount, boolean simulate)
      Specified by:
      extractItem in interface net.minecraftforge.items.IItemHandler
    • getSlotLimit

      public int getSlotLimit(int slot)
      Specified by:
      getSlotLimit in interface net.minecraftforge.items.IItemHandler
    • isItemValid

      public boolean isItemValid(int slot, net.minecraft.world.item.ItemStack stack)
      Specified by:
      isItemValid in interface net.minecraftforge.items.IItemHandler
    • setStackInSlot

      public void setStackInSlot(int slot, net.minecraft.world.item.ItemStack stack)
      Specified by:
      setStackInSlot in interface net.minecraftforge.items.IItemHandlerModifiable