public class DoubleSidedInventory extends java.lang.Object implements IInventory
| コンストラクタと説明 |
|---|
DoubleSidedInventory(IInventory p_i50399_1_,
IInventory p_i50399_2_) |
| 修飾子とタイプ | メソッドと説明 |
|---|---|
void |
clear() |
void |
closeInventory(PlayerEntity player) |
ItemStack |
decrStackSize(int index,
int count)
Removes up to a specified number of items from an inventory slot and returns them in a new stack.
|
int |
getInventoryStackLimit()
Returns the maximum stack size for a inventory slot.
|
int |
getSizeInventory()
Returns the number of slots in the inventory.
|
ItemStack |
getStackInSlot(int index)
Returns the stack in the given slot.
|
boolean |
isEmpty() |
boolean |
isItemValidForSlot(int index,
ItemStack stack)
Returns true if automation is allowed to insert the given stack (ignoring stack size) into the given slot.
|
boolean |
isPartOfLargeChest(IInventory inventoryIn)
Return whether the given inventory is part of this large chest.
|
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 a stack from the given slot and returns it.
|
void |
setInventorySlotContents(int index,
ItemStack stack)
Sets the given item stack to the specified slot in the inventory (can be crafting or armor sections).
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcount, hasAnyclearObjpublic DoubleSidedInventory(IInventory p_i50399_1_, IInventory p_i50399_2_)
public int getSizeInventory()
getSizeInventory インタフェース内 IInventorypublic boolean isEmpty()
isEmpty インタフェース内 IInventorypublic boolean isPartOfLargeChest(IInventory inventoryIn)
public ItemStack getStackInSlot(int index)
getStackInSlot インタフェース内 IInventorypublic ItemStack decrStackSize(int index, int count)
decrStackSize インタフェース内 IInventorypublic ItemStack removeStackFromSlot(int index)
removeStackFromSlot インタフェース内 IInventorypublic void setInventorySlotContents(int index,
ItemStack stack)
setInventorySlotContents インタフェース内 IInventorypublic int getInventoryStackLimit()
getInventoryStackLimit インタフェース内 IInventorypublic void markDirty()
markDirty インタフェース内 IInventorypublic boolean isUsableByPlayer(PlayerEntity player)
isUsableByPlayer インタフェース内 IInventorypublic void openInventory(PlayerEntity player)
openInventory インタフェース内 IInventorypublic void closeInventory(PlayerEntity player)
closeInventory インタフェース内 IInventorypublic boolean isItemValidForSlot(int index,
ItemStack stack)
isItemValidForSlot インタフェース内 IInventorypublic void clear()
clear インタフェース内 IClearable