package net.minecraft.inventory;

import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.item.ItemStack;
import net.minecraft.world.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 (c) 2022-2024 lax1dude, hoosiertransfer,
 * ayunami2000. All Rights Reserved.
 * 
 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
 * AND
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 * DISCLAIMED.
 * IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY
 * DIRECT,
 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
 * (INCLUDING, BUT
 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
 * DATA, OR
 * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
 * LIABILITY,
 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
 * OTHERWISE)
 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 * POSSIBILITY OF SUCH DAMAGE.
 * 
 */
public interface IInventory extends IWorldNameable {
	/**
	 * +
	 * Returns the number of slots in the inventory.
	 */
	int getSizeInventory();

	/**
	 * +
	 * Returns the stack in the given slot.
	 */
	ItemStack getStackInSlot(int var1);

	/**
	 * +
	 * Removes up to a specified number of items from an inventory
	 * slot and returns them in a new stack.
	 */
	ItemStack decrStackSize(int var1, int var2);

	/**
	 * +
	 * Removes a stack from the given slot and returns it.
	 */
	ItemStack removeStackFromSlot(int var1);

	/**
	 * +
	 * Sets the given item stack to the specified slot in the
	 * inventory (can be crafting or armor sections).
	 */
	void setInventorySlotContents(int var1, ItemStack var2);

	/**
	 * +
	 * Returns the maximum stack size for a inventory slot. Seems to
	 * always be 64, possibly will be extended.
	 */
	int getInventoryStackLimit();

	/**
	 * +
	 * 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 markDirty();

	/**
	 * +
	 * Do not make give this method the name canInteractWith because
	 * it clashes with Container
	 */
	boolean isUseableByPlayer(EntityPlayer var1);

	void openInventory(EntityPlayer var1);

	void closeInventory(EntityPlayer var1);

	/**
	 * +
	 * Returns true if automation is allowed to insert the given
	 * stack (ignoring stack size) into the given slot.
	 */
	boolean isItemValidForSlot(int var1, ItemStack var2);

	int getField(int var1);

	void setField(int var1, int var2);

	int getFieldCount();

	void clear();
}