Package net.minecraft.src
Class InventoryPlayer
- java.lang.Object
-
- net.minecraft.src.InventoryPlayer
-
- All Implemented Interfaces:
IInventory
public class InventoryPlayer extends java.lang.Object implements IInventory
-
-
Field Summary
Fields Modifier and Type Field Description ItemStack[]
armorInventory
int
currentItem
boolean
inventoryChanged
ItemStack[]
mainInventory
Player
player
-
Constructor Summary
Constructors Constructor Description InventoryPlayer(Player var1)
-
Method Summary
-
-
-
Constructor Detail
-
InventoryPlayer
public InventoryPlayer(Player var1)
-
-
Method Detail
-
getCurrentItem
public ItemStack getCurrentItem()
-
func_25054_e
public static int func_25054_e()
-
setCurrentItem
@Client public void setCurrentItem(int var1, int var2, boolean var3, boolean var4)
-
changeCurrentItem
@Client public void changeCurrentItem(int var1)
-
decrementAnimations
public void decrementAnimations()
-
consumeInventoryItem
public boolean consumeInventoryItem(int var1)
-
hasItem
public boolean hasItem(int var1)
-
addItemStackToInventory
public boolean addItemStackToInventory(ItemStack var1)
-
decrStackSize
public ItemStack decrStackSize(int var1, int var2)
- Specified by:
decrStackSize
in interfaceIInventory
-
getStackInSlotOnClosing
public ItemStack getStackInSlotOnClosing(int var1)
- Specified by:
getStackInSlotOnClosing
in interfaceIInventory
-
setInventorySlotContents
public void setInventorySlotContents(int var1, ItemStack var2)
- Specified by:
setInventorySlotContents
in interfaceIInventory
-
getStrVsBlock
public float getStrVsBlock(Block var1)
-
writeToNBT
public NBTTagList writeToNBT(NBTTagList var1)
-
readFromNBT
public void readFromNBT(NBTTagList var1)
-
getSizeInventory
public int getSizeInventory()
- Specified by:
getSizeInventory
in interfaceIInventory
-
getStackInSlot
public ItemStack getStackInSlot(int var1)
- Specified by:
getStackInSlot
in interfaceIInventory
-
getInvName
public java.lang.String getInvName()
- Specified by:
getInvName
in interfaceIInventory
-
getInventoryStackLimit
public int getInventoryStackLimit()
- Specified by:
getInventoryStackLimit
in interfaceIInventory
-
getDamageVsEntity
public int getDamageVsEntity(Entity var1)
-
canHarvestBlock
public boolean canHarvestBlock(Block var1)
-
getTotalArmorValue
public int getTotalArmorValue()
-
damageArmor
public void damageArmor(int var1)
-
dropAllItems
public void dropAllItems()
-
onInventoryChanged
public void onInventoryChanged()
- Specified by:
onInventoryChanged
in interfaceIInventory
-
setItemStack
public void setItemStack(ItemStack var1)
-
getItemStack
public ItemStack getItemStack()
-
isUseableByPlayer
public boolean isUseableByPlayer(Player var1)
- Specified by:
isUseableByPlayer
in interfaceIInventory
-
hasItemStack
public boolean hasItemStack(ItemStack var1)
-
openChest
public void openChest()
- Specified by:
openChest
in interfaceIInventory
-
closeChest
public void closeChest()
- Specified by:
closeChest
in interfaceIInventory
-
copyInventory
public void copyInventory(InventoryPlayer var1)
-
-