Package net.minecraft.inventory
Interface IInventory
-
- All Superinterfaces:
IClearable
- All Known Subinterfaces:
IHopper
,ISidedInventory
- All Known Implementing Classes:
AbstractFurnaceTileEntity
,BarrelTileEntity
,BlastFurnaceTileEntity
,BrewingStandTileEntity
,ChestMinecartEntity
,ChestTileEntity
,ComposterBlock.EmptyInventory
,ComposterBlock.FullInventory
,ComposterBlock.PartialInventory
,ContainerMinecartEntity
,CraftingInventory
,CraftResultInventory
,DispenserTileEntity
,DoubleSidedInventory
,DropperTileEntity
,EnderChestInventory
,FurnaceTileEntity
,HopperMinecartEntity
,HopperTileEntity
,Inventory
,LockableLootTileEntity
,LockableTileEntity
,MerchantInventory
,PlayerInventory
,RecipeWrapper
,ShulkerBoxTileEntity
,SmokerTileEntity
,TrappedChestTileEntity
public interface IInventory extends IClearable
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default boolean
canPlaceItem(int p_94041_1_, ItemStack p_94041_2_)
default int
countItem(Item p_213901_1_)
int
getContainerSize()
ItemStack
getItem(int p_70301_1_)
default int
getMaxStackSize()
default boolean
hasAnyOf(java.util.Set<Item> p_213902_1_)
boolean
isEmpty()
ItemStack
removeItem(int p_70298_1_, int p_70298_2_)
ItemStack
removeItemNoUpdate(int p_70304_1_)
void
setChanged()
void
setItem(int p_70299_1_, ItemStack p_70299_2_)
default void
startOpen(PlayerEntity p_174889_1_)
boolean
stillValid(PlayerEntity p_70300_1_)
default void
stopOpen(PlayerEntity p_174886_1_)
-
Methods inherited from interface net.minecraft.inventory.IClearable
clearContent
-
-
-
-
Method Detail
-
getContainerSize
int getContainerSize()
-
isEmpty
boolean isEmpty()
-
getItem
ItemStack getItem(int p_70301_1_)
-
removeItem
ItemStack removeItem(int p_70298_1_, int p_70298_2_)
-
removeItemNoUpdate
ItemStack removeItemNoUpdate(int p_70304_1_)
-
setItem
void setItem(int p_70299_1_, ItemStack p_70299_2_)
-
getMaxStackSize
default int getMaxStackSize()
-
setChanged
void setChanged()
-
stillValid
boolean stillValid(PlayerEntity p_70300_1_)
-
startOpen
default void startOpen(PlayerEntity p_174889_1_)
-
stopOpen
default void stopOpen(PlayerEntity p_174886_1_)
-
canPlaceItem
default boolean canPlaceItem(int p_94041_1_, ItemStack p_94041_2_)
-
countItem
default int countItem(Item p_213901_1_)
-
hasAnyOf
default boolean hasAnyOf(java.util.Set<Item> p_213902_1_)
-
-