public class RecipeWrapper extends java.lang.Object implements IInventory
| 修飾子とタイプ | フィールドと説明 |
|---|---|
protected IItemHandlerModifiable |
inv |
| コンストラクタと説明 |
|---|
RecipeWrapper(IItemHandlerModifiable inv) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
clear() |
void |
closeInventory(PlayerEntity player) |
ItemStack |
decrStackSize(int slot,
int count)
Attempts to remove n items from the specified slot.
|
int |
getInventoryStackLimit()
Returns the maximum stack size for a inventory slot.
|
int |
getSizeInventory()
Returns the size of this inventory.
|
ItemStack |
getStackInSlot(int slot)
Returns the stack in this slot.
|
boolean |
isEmpty() |
boolean |
isItemValidForSlot(int slot,
ItemStack stack)
Returns true if automation is allowed to insert the given stack (ignoring stack size) into the given slot.
|
boolean |
isUsableByPlayer(PlayerEntity player)
Don't rename this method to canInteractWith due to conflicts with Container
|
void |
markDirty()
For tile entities, ensures the chunk containing the tile entity is saved to disk later - the game won't think it
hasn't changed and skip it.
|
void |
openInventory(PlayerEntity player) |
ItemStack |
removeStackFromSlot(int index)
Removes the stack contained in this slot from the underlying handler, and returns it.
|
void |
setInventorySlotContents(int slot,
ItemStack stack)
Sets the contents of this slot to the provided stack.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcount, hasAnyclearObjprotected final IItemHandlerModifiable inv
public RecipeWrapper(IItemHandlerModifiable inv)
public int getSizeInventory()
#getHeight() * #getWidth().getSizeInventory インタフェース内 IInventorypublic ItemStack getStackInSlot(int slot)
getStackInSlot インタフェース内 IInventorypublic ItemStack decrStackSize(int slot, int count)
decrStackSize インタフェース内 IInventorypublic void setInventorySlotContents(int slot,
ItemStack stack)
setInventorySlotContents インタフェース内 IInventorypublic ItemStack removeStackFromSlot(int index)
removeStackFromSlot インタフェース内 IInventorypublic boolean isEmpty()
isEmpty インタフェース内 IInventorypublic boolean isItemValidForSlot(int slot,
ItemStack stack)
IInventoryisItemValidForSlot インタフェース内 IInventorypublic void clear()
clear インタフェース内 IClearablepublic int getInventoryStackLimit()
IInventorygetInventoryStackLimit インタフェース内 IInventorypublic void markDirty()
IInventorymarkDirty インタフェース内 IInventorypublic boolean isUsableByPlayer(PlayerEntity player)
IInventoryisUsableByPlayer インタフェース内 IInventorypublic void openInventory(PlayerEntity player)
openInventory インタフェース内 IInventorypublic void closeInventory(PlayerEntity player)
closeInventory インタフェース内 IInventory