Package net.minecraft.inventory
Interface IInventory
-
- All Superinterfaces:
IWorldNameable
- All Known Subinterfaces:
IHopper
,ILockableContainer
,ISidedInventory
- All Known Implementing Classes:
AnimalChest
,ContainerLocalMenu
,EntityMinecartChest
,EntityMinecartContainer
,EntityMinecartHopper
,InventoryBasic
,InventoryCrafting
,InventoryCraftResult
,InventoryEnderChest
,InventoryLargeChest
,InventoryMerchant
,InventoryPlayer
,TileEntityBeacon
,TileEntityBrewingStand
,TileEntityChest
,TileEntityDispenser
,TileEntityDropper
,TileEntityFurnace
,TileEntityHopper
,TileEntityLockable
public interface IInventory extends IWorldNameable
+ This portion of EaglercraftX contains deobfuscated Minecraft 1.8 source code. Minecraft 1.8.8 bytecode is (c) 2015 Mojang AB. "Do not distribute!" Mod Coder Pack v9.18 deobfuscation configs are (c) Copyright by the MCP Team EaglercraftX 1.8 patch files are (c) 2022-2023 LAX1DUDE. All Rights Reserved. WITH THE EXCEPTION OF PATCH FILES, MINIFIED JAVASCRIPT, AND ALL FILES NORMALLY FOUND IN AN UNMODIFIED MINECRAFT RESOURCE PACK, YOU ARE NOT ALLOWED TO SHARE, DISTRIBUTE, OR REPURPOSE ANY FILE USED BY OR PRODUCED BY THE SOFTWARE IN THIS REPOSITORY WITHOUT PRIOR PERMISSION FROM THE PROJECT AUTHOR. NOT FOR COMMERCIAL OR MALICIOUS USE (please read the 'LICENSE' file this repo's root directory for more info)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
clear()
void
closeInventory(EntityPlayer var1)
ItemStack
decrStackSize(int var1, int var2)
+ Removes up to a specified number of items from an inventory slot and returns them in a new stack.int
getField(int var1)
int
getFieldCount()
int
getInventoryStackLimit()
+ Returns the maximum stack size for a inventory slot.int
getSizeInventory()
+ Returns the number of slots in the inventory.ItemStack
getStackInSlot(int var1)
+ Returns the stack in the given slot.boolean
isItemValidForSlot(int var1, ItemStack var2)
+ Returns true if automation is allowed to insert the given stack (ignoring stack size) into the given slot.boolean
isUseableByPlayer(EntityPlayer var1)
+ Do not make give this method the name canInteractWith because it clashes with Containervoid
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(EntityPlayer var1)
ItemStack
removeStackFromSlot(int var1)
+ Removes a stack from the given slot and returns it.void
setField(int var1, int var2)
void
setInventorySlotContents(int var1, ItemStack var2)
+ Sets the given item stack to the specified slot in the inventory (can be crafting or armor sections).-
Methods inherited from interface net.minecraft.world.IWorldNameable
getDisplayName, getName, hasCustomName
-
-
-
-
Method Detail
-
getSizeInventory
int getSizeInventory()
+ Returns the number of slots in the inventory.
-
getStackInSlot
ItemStack getStackInSlot(int var1)
+ Returns the stack in the given slot.
-
decrStackSize
ItemStack decrStackSize(int var1, int var2)
+ Removes up to a specified number of items from an inventory slot and returns them in a new stack.
-
removeStackFromSlot
ItemStack removeStackFromSlot(int var1)
+ Removes a stack from the given slot and returns it.
-
setInventorySlotContents
void setInventorySlotContents(int var1, ItemStack var2)
+ Sets the given item stack to the specified slot in the inventory (can be crafting or armor sections).
-
getInventoryStackLimit
int getInventoryStackLimit()
+ Returns the maximum stack size for a inventory slot. Seems to always be 64, possibly will be extended.
-
markDirty
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.
-
isUseableByPlayer
boolean isUseableByPlayer(EntityPlayer var1)
+ Do not make give this method the name canInteractWith because it clashes with Container
-
openInventory
void openInventory(EntityPlayer var1)
-
closeInventory
void closeInventory(EntityPlayer var1)
-
isItemValidForSlot
boolean isItemValidForSlot(int var1, ItemStack var2)
+ Returns true if automation is allowed to insert the given stack (ignoring stack size) into the given slot.
-
getField
int getField(int var1)
-
setField
void setField(int var1, int var2)
-
getFieldCount
int getFieldCount()
-
clear
void clear()
-
-