Package net.minecraft.inventory
Class InventoryLargeChest
- java.lang.Object
-
- net.minecraft.inventory.InventoryLargeChest
-
- All Implemented Interfaces:
IInventory,IInteractionObject,ILockableContainer,IWorldNameable
public class InventoryLargeChest extends java.lang.Object implements ILockableContainer
+ 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)
-
-
Constructor Summary
Constructors Constructor Description InventoryLargeChest(java.lang.String nameIn, ILockableContainer upperChestIn, ILockableContainer lowerChestIn)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()voidcloseInventory(EntityPlayer entityplayer)ContainercreateContainer(InventoryPlayer inventoryplayer, EntityPlayer entityplayer)ItemStackdecrStackSize(int i, int j)+ Removes up to a specified number of items from an inventory slot and returns them in a new stack.IChatComponentgetDisplayName()+ Get the formatted ChatComponent that will be used for the sender's username in chatintgetField(int var1)intgetFieldCount()java.lang.StringgetGuiID()intgetInventoryStackLimit()+ Returns the maximum stack size for a inventory slot.LockCodegetLockCode()java.lang.StringgetName()+ Gets the name of this command sender (usually username, but possibly "Rcon")intgetSizeInventory()+ Returns the number of slots in the inventory.ItemStackgetStackInSlot(int i)+ Returns the stack in the given slot.booleanhasCustomName()+ Returns true if this thing is namedbooleanisItemValidForSlot(int var1, ItemStack var2)+ Returns true if automation is allowed to insert the given stack (ignoring stack size) into the given slot.booleanisLocked()booleanisPartOfLargeChest(IInventory inventoryIn)+ Return whether the given inventory is part of this large chest.booleanisUseableByPlayer(EntityPlayer entityplayer)+ Do not make give this method the name canInteractWith because it clashes with ContainervoidmarkDirty()+ 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.voidopenInventory(EntityPlayer entityplayer)ItemStackremoveStackFromSlot(int i)+ Removes a stack from the given slot and returns it.voidsetField(int var1, int var2)voidsetInventorySlotContents(int i, ItemStack itemstack)+ Sets the given item stack to the specified slot in the inventory (can be crafting or armor sections).voidsetLockCode(LockCode lockcode)
-
-
-
Constructor Detail
-
InventoryLargeChest
public InventoryLargeChest(java.lang.String nameIn, ILockableContainer upperChestIn, ILockableContainer lowerChestIn)
-
-
Method Detail
-
getSizeInventory
public int getSizeInventory()
+ Returns the number of slots in the inventory.- Specified by:
getSizeInventoryin interfaceIInventory
-
isPartOfLargeChest
public boolean isPartOfLargeChest(IInventory inventoryIn)
+ Return whether the given inventory is part of this large chest.
-
getName
public java.lang.String getName()
+ Gets the name of this command sender (usually username, but possibly "Rcon")- Specified by:
getNamein interfaceIWorldNameable
-
hasCustomName
public boolean hasCustomName()
+ Returns true if this thing is named- Specified by:
hasCustomNamein interfaceIWorldNameable
-
getDisplayName
public IChatComponent getDisplayName()
+ Get the formatted ChatComponent that will be used for the sender's username in chat- Specified by:
getDisplayNamein interfaceIWorldNameable
-
getStackInSlot
public ItemStack getStackInSlot(int i)
+ Returns the stack in the given slot.- Specified by:
getStackInSlotin interfaceIInventory
-
decrStackSize
public ItemStack decrStackSize(int i, int j)
+ Removes up to a specified number of items from an inventory slot and returns them in a new stack.- Specified by:
decrStackSizein interfaceIInventory
-
removeStackFromSlot
public ItemStack removeStackFromSlot(int i)
+ Removes a stack from the given slot and returns it.- Specified by:
removeStackFromSlotin interfaceIInventory
-
setInventorySlotContents
public void setInventorySlotContents(int i, ItemStack itemstack)+ Sets the given item stack to the specified slot in the inventory (can be crafting or armor sections).- Specified by:
setInventorySlotContentsin interfaceIInventory
-
getInventoryStackLimit
public int getInventoryStackLimit()
+ Returns the maximum stack size for a inventory slot. Seems to always be 64, possibly will be extended.- Specified by:
getInventoryStackLimitin interfaceIInventory
-
markDirty
public 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.- Specified by:
markDirtyin interfaceIInventory
-
isUseableByPlayer
public boolean isUseableByPlayer(EntityPlayer entityplayer)
+ Do not make give this method the name canInteractWith because it clashes with Container- Specified by:
isUseableByPlayerin interfaceIInventory
-
openInventory
public void openInventory(EntityPlayer entityplayer)
- Specified by:
openInventoryin interfaceIInventory
-
closeInventory
public void closeInventory(EntityPlayer entityplayer)
- Specified by:
closeInventoryin interfaceIInventory
-
isItemValidForSlot
public boolean isItemValidForSlot(int var1, ItemStack var2)+ Returns true if automation is allowed to insert the given stack (ignoring stack size) into the given slot.- Specified by:
isItemValidForSlotin interfaceIInventory
-
getField
public int getField(int var1)
- Specified by:
getFieldin interfaceIInventory
-
setField
public void setField(int var1, int var2)- Specified by:
setFieldin interfaceIInventory
-
getFieldCount
public int getFieldCount()
- Specified by:
getFieldCountin interfaceIInventory
-
isLocked
public boolean isLocked()
- Specified by:
isLockedin interfaceILockableContainer
-
setLockCode
public void setLockCode(LockCode lockcode)
- Specified by:
setLockCodein interfaceILockableContainer
-
getLockCode
public LockCode getLockCode()
- Specified by:
getLockCodein interfaceILockableContainer
-
getGuiID
public java.lang.String getGuiID()
- Specified by:
getGuiIDin interfaceIInteractionObject
-
createContainer
public Container createContainer(InventoryPlayer inventoryplayer, EntityPlayer entityplayer)
- Specified by:
createContainerin interfaceIInteractionObject
-
clear
public void clear()
- Specified by:
clearin interfaceIInventory
-
-