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
-
Method Summary
Modifier and TypeMethodDescriptiondefault booleancanPlaceItem(int p_94041_1_, ItemStack p_94041_2_) default intintgetItem(int p_70301_1_) default intdefault booleanbooleanisEmpty()removeItem(int p_70298_1_, int p_70298_2_) removeItemNoUpdate(int p_70304_1_) voidvoiddefault voidstartOpen(PlayerEntity p_174889_1_) booleanstillValid(PlayerEntity p_70300_1_) default voidstopOpen(PlayerEntity p_174886_1_) Methods inherited from interface net.minecraft.inventory.IClearable
clearContent
-
Method Details
-
getContainerSize
int getContainerSize() -
isEmpty
boolean isEmpty() -
getItem
-
removeItem
-
removeItemNoUpdate
-
setItem
-
getMaxStackSize
default int getMaxStackSize() -
setChanged
void setChanged() -
stillValid
-
startOpen
-
stopOpen
-
canPlaceItem
-
countItem
-
hasAnyOf
-