public class PlayerMainInvWrapper extends RangedWrapper
| コンストラクタと説明 | 
|---|
| PlayerMainInvWrapper(PlayerInventory inv) | 
| 修飾子とタイプ | メソッドと説明 | 
|---|---|
| PlayerInventory | getInventoryPlayer() | 
| ItemStack | insertItem(int slot,
          ItemStack stack,
          boolean simulate)
 Inserts an ItemStack into the given slot and return the remainder. | 
extractItem, getSlotLimit, getSlots, getStackInSlot, isItemValid, setStackInSlotpublic PlayerMainInvWrapper(PlayerInventory inv)
@Nonnull public ItemStack insertItem(int slot, @Nonnull ItemStack stack, boolean simulate)
IItemHandlerInserts 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 fromIFluidHandler#fill(FluidStack, boolean)insertItem インタフェース内 IItemHandlerinsertItem クラス内 RangedWrapperslot - Slot to insert into.stack - ItemStack to insert. This must not be modified by the item handler.simulate - If true, the insertion is only simulatedpublic PlayerInventory getInventoryPlayer()