net.minecraft.entity.living.player

public class PlayerInventory

implements Inventory

aec
net.minecraft.class_987
net.minecraft.entity.living.player.PlayerInventory
net.minecraft.entity.player.InventoryPlayer
net.minecraft.entity.player.InventoryPlayer

Field summary

Modifier and TypeField
public final DefaultedList<ItemStack>
a
field_15082
items
field_70462_a
mainInventory
public final DefaultedList<ItemStack>
b
field_15083
armor
field_70460_b
armorInventory
public final DefaultedList<ItemStack>
c
field_15084
offhand
field_184439_c
offHandInventory
private final List<DefaultedList<ItemStack>>
f
field_15085
compartments
field_184440_g
allInventories
public int
d
field_3966
selectedSlot
field_70461_c
currentItem
public PlayerEntity
e
field_3967
player
field_70458_d
player
private ItemStack
g
field_3970
cursorItem
field_70457_g
itemStack
private int
h
field_15624
changedCount
field_194017_h
timesChanged

Constructor summary

ModifierConstructor
public (PlayerEntity player)

Method summary

Modifier and TypeMethod
public ItemStack
i()
method_3142()
getSelectedItem()
func_70448_g()
getCurrentItem()
public static int
j()
method_3144()
getHotbarSize()
func_70451_h()
getHotbarSize()
private boolean
a(aip arg0, aip arg1)
method_13251(class_1071 arg0, class_1071 arg1)
canCombineItems(ItemStack item1, ItemStack item2)
func_184436_a(ItemStack arg0, ItemStack arg1)
canMergeStacks(ItemStack stack1, ItemStack stack2)
private boolean
b(aip arg0, aip arg1)
method_13254(class_1071 arg0, class_1071 arg1)
areItemsTheSame(ItemStack item1, ItemStack item2)
func_184431_b(ItemStack arg0, ItemStack arg1)
stackEqualExact(ItemStack stack1, ItemStack stack2)
public int
k()
method_3146()
getEmptySlot()
func_70447_i()
getFirstEmptyStack()
public void
d(int arg0)
method_13256(int arg0)
swapSlotWithHotbar(int slot)
func_184430_d(int arg0)
pickItem(int index)
public static boolean
e(int arg0)
method_13258(int arg0)
isValidSlot(int slot)
func_184435_e(int arg0)
isHotbar(int index)
public int
c(aip arg0)
method_14151(class_1071 arg0)
getMatchingSlot(ItemStack item)
func_194014_c(ItemStack arg0)
findSlotMatchingUnusedItem(ItemStack arg0)
public int
l()
method_13259()
getSwappableHotbarSlot()
func_184433_k()
getBestHotbarSlot()
public int
a(ain arg0, int arg1, int arg2, fy arg3)
method_11232(class_1069 arg0, int arg1, int arg2, class_322 arg3)
removeAll(Item item, int metadata, int maxAmount, NbtCompound nbt)
func_174925_a(Item arg0, int arg1, int arg2, NBTTagCompound arg3)
clearMatchingItems(Item itemIn, int metadataIn, int removeCount, NBTTagCompound itemNBT)
private int
i(aip arg0)
method_3140(class_1071 arg0)
addItemStack(ItemStack item)
func_70452_e(ItemStack arg0)
storePartialItemStack(ItemStack itemStackIn)
private int
d(int arg0, aip arg1)
method_14152(int arg0, class_1071 arg1)
addItemStack(int slot, ItemStack item)
func_191973_d(int arg0, ItemStack arg1)
addResource(int arg0, ItemStack arg1)
public int
d(aip arg0)
method_3138(class_1071 arg0)
getSlotWithSpace(ItemStack item)
func_70432_d(ItemStack arg0)
storeItemStack(ItemStack itemStackIn)
public void
n()
method_3147()
tick()
func_70429_k()
decrementAnimations()
public boolean
e(aip arg0)
method_3129(class_1071 arg0)
addItem(ItemStack item)
func_70441_a(ItemStack arg0)
addItemStackToInventory(ItemStack itemStackIn)
public boolean
c(int arg0, aip arg1)
method_14150(int arg0, class_1071 arg1)
addItem(int slot, ItemStack item)
func_191971_c(int arg0, ItemStack arg1)
add(int arg0, ItemStack arg1)
public void
a(amu arg0, aip arg1)
method_14149(class_1150 arg0, class_1071 arg1)
offerItem(World world, ItemStack item)
func_191975_a(World arg0, ItemStack arg1)
placeItemBackInInventory(World arg0, ItemStack arg1)
public ItemStack
a(int arg0, int arg1)
method_2382(int arg0, int arg1)
removeItem(int arg0, int arg1)
func_70298_a(int arg0, int arg1)
decrStackSize(int arg0, int arg1)
public void
f(aip arg0)
method_13257(class_1071 arg0)
removeItem(ItemStack item)
func_184437_d(ItemStack arg0)
deleteStack(ItemStack stack)
public ItemStack
c_(int arg0)
method_2386(int arg0)
removeItemQuietly(int arg0)
func_70304_b(int arg0)
removeStackFromSlot(int arg0)
public void
a(int arg0, aip arg1)
method_2383(int arg0, class_1071 arg1)
setItem(int arg0, ItemStack arg1)
func_70299_a(int arg0, ItemStack arg1)
setInventorySlotContents(int arg0, ItemStack arg1)
public float
a(awt arg0)
method_13252(class_2232 arg0)
getMiningSpeed(BlockState state)
func_184438_a(IBlockState arg0)
getDestroySpeed(IBlockState state)
public NbtList
a(ge arg0)
method_3126(class_474 arg0)
writeNbt(NbtList list)
func_70442_a(NBTTagList arg0)
writeToNBT(NBTTagList nbtTagListIn)
public void
b(ge arg0)
method_3131(class_474 arg0)
readNbt(NbtList list)
func_70443_b(NBTTagList arg0)
readFromNBT(NBTTagList nbtTagListIn)
public int
w_()
method_2388()
getSize()
func_70302_i_()
getSizeInventory()
public boolean
x_()
method_13922()
isEmpty()
func_191420_l()
isEmpty()
public ItemStack
a(int arg0)
method_2381(int arg0)
getItem(int arg0)
func_70301_a(int arg0)
getStackInSlot(int arg0)
public String
h_()
method_2518()
getName()
func_70005_c_()
getName()
public boolean
n_()
method_5339()
hasCustomName()
func_145818_k_()
hasCustomName()
public Text
i_()
method_6344()
getDisplayName()
func_145748_c_()
getDisplayName()
public int
z_()
method_2389()
getMaxStackSize()
func_70297_j_()
getInventoryStackLimit()
public boolean
b(awt arg0)
method_13255(class_2232 arg0)
canMineBlock(BlockState state)
func_184432_b(IBlockState arg0)
canHarvestBlock(IBlockState state)
public void
a(float arg0)
method_6316(float arg0)
damageArmor(float armor)
func_70449_g(float arg0)
damageArmor(float damage)
public void
o()
method_3149()
dropAll()
func_70436_m()
dropAllItems()
public void
y_()
method_543()
markDirty()
func_70296_d()
markDirty()
public void
g(aip arg0)
method_3133(class_1071 arg0)
setCursorItem(ItemStack item)
func_70437_b(ItemStack arg0)
setItemStack(ItemStack itemStackIn)
public ItemStack
q()
method_3150()
getCursorItem()
func_70445_o()
getItemStack()
public boolean
a(aed arg0)
method_2384(class_988 arg0)
isValid(PlayerEntity arg0)
func_70300_a(EntityPlayer arg0)
isUsableByPlayer(EntityPlayer arg0)
public boolean
h(aip arg0)
method_3136(class_1071 arg0)
contains(ItemStack item)
func_70431_c(ItemStack arg0)
hasItemStack(ItemStack itemStackIn)
public void
b(aed arg0)
method_10894(class_988 arg0)
onOpen(PlayerEntity arg0)
func_174889_b(EntityPlayer arg0)
openInventory(EntityPlayer arg0)
public void
c(aed arg0)
method_10895(class_988 arg0)
onClose(PlayerEntity arg0)
func_174886_c(EntityPlayer arg0)
closeInventory(EntityPlayer arg0)
public boolean
b(int arg0, aip arg1)
method_5338(int arg0, class_1071 arg1)
isItemAllowed(int arg0, ItemStack arg1)
func_94041_b(int arg0, ItemStack arg1)
isItemValidForSlot(int arg0, ItemStack arg1)
public void
a(aec arg0)
method_3132(class_987 arg0)
copy(PlayerInventory inventory)
func_70455_b(InventoryPlayer arg0)
copyInventory(InventoryPlayer playerInventory)
public int
c(int arg0)
method_10892(int arg0)
getData(int arg0)
func_174887_a_(int arg0)
getField(int arg0)
public void
b(int arg0, int arg1)
method_10893(int arg0, int arg1)
setData(int arg0, int arg1)
func_174885_b(int arg0, int arg1)
setField(int arg0, int arg1)
public int
h()
method_10896()
getDataSize()
func_174890_g()
getFieldCount()
public void
m()
method_10897()
clear()
func_174888_l()
clear()
public void
a(aef arg0, boolean arg1)
method_14148(class_3175 arg0, boolean arg1)
fill(StackedContents contents, boolean addOffHand)
func_194016_a(RecipeItemHelper arg0, boolean arg1)
fillStackedContents(RecipeItemHelper helper, boolean arg1)
public void
a(aip arg0)
method_13250(class_1071 arg0)
selectSlot(ItemStack item)
func_184434_a(ItemStack arg0)
setPickedItemStack(ItemStack stack)
public int
b(aip arg0)
method_13253(class_1071 arg0)
getSlot(ItemStack item)
func_184429_b(ItemStack arg0)
getSlotFor(ItemStack stack)
public void
f(int arg0)
method_3134(int arg0)
scrollInHotbar(int amount)
func_70453_c(int arg0)
changeCurrentItem(int direction)
public ItemStack
g(int arg0)
method_3141(int arg0)
getArmor(int slot)
func_70440_f(int arg0)
armorItemInSlot(int slotIn)
public int
p()
method_14153()
getChangedCount()
func_194015_p()
getTimesChanged()