insertItem
@Nonnull
public ItemStack insertItem(int slot,
                                      @Nonnull
                                      ItemStack stack,
                                      boolean simulate)
Inserts an ItemStack into the given slot and return the remainder.
 The ItemStack should not be modified in this function!
 Note: This behaviour is subtly different from IFluidHandlers.fill()
- Specified by:
- insertItemin interface- IItemHandler
- Overrides:
- insertItemin class- RangedWrapper
- Parameters:
- slot- Slot to insert into.
- stack- ItemStack to insert.
- simulate- If true, the insertion is only simulated
- Returns:
- The remaining ItemStack that was not inserted (if the entire stack is accepted, then return null).
         May be the same as the input ItemStack if unchanged, otherwise a new ItemStack.