Package net.minecraft.inventory
Class InventoryBasic
- java.lang.Object
-
- net.zxmushroom63.plugins.BaseData
-
- net.zxmushroom63.plugins.PluginData
-
- net.minecraft.inventory.InventoryBasic
-
- All Implemented Interfaces:
IInventory
,IWorldNameable
,org.teavm.jso.JSObject
- Direct Known Subclasses:
AnimalChest
,ContainerLocalMenu
,InventoryEnderChest
public class InventoryBasic extends PluginData implements IInventory
+ 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)
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class net.zxmushroom63.plugins.BaseData
BaseData.BooleanCallback, BaseData.BooleanCallbackArr, BaseData.DataBooleanCallback, BaseData.DataBooleanCallbackArr, BaseData.DataDoubleCallback, BaseData.DataDoubleCallbackArr, BaseData.DataFloatCallback, BaseData.DataFloatCallbackArr, BaseData.DataIntCallback, BaseData.DataIntCallbackArr, BaseData.DataObjectCallback, BaseData.DataObjectCallbackArr, BaseData.DataStringCallback, BaseData.DataStringCallbackArr, BaseData.DataVoidCallback, BaseData.DoubleCallback, BaseData.DoubleCallbackArr, BaseData.FloatCallback, BaseData.FloatCallbackArr, BaseData.IntCallback, BaseData.IntCallbackArr, BaseData.ObjectCallback, BaseData.ObjectCallbackArr, BaseData.StringCallback, BaseData.StringCallbackArr, BaseData.VoidCallback
-
-
Constructor Summary
Constructors Constructor Description InventoryBasic(java.lang.String title, boolean customName, int slotCount)
InventoryBasic(IChatComponent title, int slotCount)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
void
closeInventory(EntityPlayer var1)
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.void
func_110132_b(IInvBasic parIInvBasic)
void
func_110134_a(IInvBasic parIInvBasic)
ItemStack
func_174894_a(ItemStack stack)
IChatComponent
getDisplayName()
+ Get the formatted ChatComponent that will be used for the sender's username in chatint
getField(int var1)
int
getFieldCount()
int
getInventoryStackLimit()
+ Returns the maximum stack size for a inventory slot.java.lang.String
getName()
+ Gets the name of this command sender (usually username, but possibly "Rcon")int
getSizeInventory()
+ Returns the number of slots in the inventory.ItemStack
getStackInSlot(int i)
+ Returns the stack in the given slot.boolean
hasCustomName()
+ Returns true if this thing is namedboolean
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
loadPluginData(BaseData data)
PluginData
makePluginData()
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.void
openInventory(EntityPlayer var1)
ItemStack
removeStackFromSlot(int i)
+ Removes a stack from the given slot and returns it.void
setCustomName(java.lang.String inventoryTitleIn)
+ Sets the name of this inventory.void
setField(int var1, int var2)
void
setInventorySlotContents(int i, ItemStack itemstack)
+ Sets the given item stack to the specified slot in the inventory (can be crafting or armor sections).-
Methods inherited from class net.zxmushroom63.plugins.BaseData
execFuncBaseData, execFuncObject, execFuncString, getBaseData, getBaseDataArr, getBoolean, getBooleanArr, getByte, getByteArr, getChar, getCharArr, getDouble, getDoubleArr, getFloat, getFloatArr, getInt, getIntArr, getObject, getObjectArr, getShort, getShortArr, getString, getStringArr, has, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, set, setCallbackBoolean, setCallbackBooleanArr, setCallbackBooleanArrWithDataArg, setCallbackBooleanWithDataArg, setCallbackDouble, setCallbackDoubleArr, setCallbackDoubleArrWithDataArg, setCallbackDoubleWithDataArg, setCallbackFloat, setCallbackFloatArr, setCallbackFloatArrWithDataArg, setCallbackFloatWithDataArg, setCallbackInt, setCallbackIntArr, setCallbackIntArrWithDataArg, setCallbackIntWithDataArg, setCallbackObject, setCallbackObjectArr, setCallbackObjectArrWithDataArg, setCallbackObjectWithDataArg, setCallbackString, setCallbackStringArr, setCallbackStringArrWithDataArg, setCallbackStringWithDataArg, setCallbackVoid, setCallbackVoidWithDataArg, setNull
-
-
-
-
Constructor Detail
-
InventoryBasic
public InventoryBasic(java.lang.String title, boolean customName, int slotCount)
-
InventoryBasic
public InventoryBasic(IChatComponent title, int slotCount)
-
-
Method Detail
-
loadPluginData
public void loadPluginData(BaseData data)
-
makePluginData
public PluginData makePluginData()
-
func_110134_a
public void func_110134_a(IInvBasic parIInvBasic)
-
func_110132_b
public void func_110132_b(IInvBasic parIInvBasic)
-
getStackInSlot
public ItemStack getStackInSlot(int i)
+ Returns the stack in the given slot.- Specified by:
getStackInSlot
in 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:
decrStackSize
in interfaceIInventory
-
removeStackFromSlot
public ItemStack removeStackFromSlot(int i)
+ Removes a stack from the given slot and returns it.- Specified by:
removeStackFromSlot
in 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:
setInventorySlotContents
in interfaceIInventory
-
getSizeInventory
public int getSizeInventory()
+ Returns the number of slots in the inventory.- Specified by:
getSizeInventory
in interfaceIInventory
-
getName
public java.lang.String getName()
+ Gets the name of this command sender (usually username, but possibly "Rcon")- Specified by:
getName
in interfaceIWorldNameable
-
hasCustomName
public boolean hasCustomName()
+ Returns true if this thing is named- Specified by:
hasCustomName
in interfaceIWorldNameable
-
setCustomName
public void setCustomName(java.lang.String inventoryTitleIn)
+ Sets the name of this inventory. This is displayed to the client on opening.
-
getDisplayName
public IChatComponent getDisplayName()
+ Get the formatted ChatComponent that will be used for the sender's username in chat- Specified by:
getDisplayName
in interfaceIWorldNameable
-
getInventoryStackLimit
public int getInventoryStackLimit()
+ Returns the maximum stack size for a inventory slot. Seems to always be 64, possibly will be extended.- Specified by:
getInventoryStackLimit
in 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:
markDirty
in interfaceIInventory
-
isUseableByPlayer
public boolean isUseableByPlayer(EntityPlayer var1)
+ Do not make give this method the name canInteractWith because it clashes with Container- Specified by:
isUseableByPlayer
in interfaceIInventory
-
openInventory
public void openInventory(EntityPlayer var1)
- Specified by:
openInventory
in interfaceIInventory
-
closeInventory
public void closeInventory(EntityPlayer var1)
- Specified by:
closeInventory
in 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:
isItemValidForSlot
in interfaceIInventory
-
getField
public int getField(int var1)
- Specified by:
getField
in interfaceIInventory
-
setField
public void setField(int var1, int var2)
- Specified by:
setField
in interfaceIInventory
-
getFieldCount
public int getFieldCount()
- Specified by:
getFieldCount
in interfaceIInventory
-
clear
public void clear()
- Specified by:
clear
in interfaceIInventory
-
-