net.minecraft.world.entity.player

public class Inventory

implements Container, Nameable

bfv
net.minecraft.world.entity.player.Inventory
net.minecraft.class_1661
net.minecraft.unmapped.C_sxzqocrm
net.minecraft.entity.player.PlayerInventory
net.minecraft.entity.player.PlayerInventory
net.minecraft.server.v1_16_R3.PlayerInventory

Field summary

Modifier and TypeField
public final NonNullList<ItemStack>
a
items
field_7547
f_atsclqcy
main
field_70462_a
items
public final NonNullList<ItemStack>
b
armor
field_7548
f_stpscvms
armor
field_70460_b
armor
public final NonNullList<ItemStack>
c
offhand
field_7544
f_qvtlcdqt
offHand
field_184439_c
extraSlots
private final List<NonNullList<ItemStack>>
f
compartments
field_7543
f_rvivffsn
combinedInventory
field_184440_g
public int
d
selected
field_7545
f_hhxlkrup
selectedSlot
field_70461_c
itemInHandIndex
public final Player
e
player
field_7546
f_muifvbni
player
field_70458_d
player
private ItemStack
g
carried
field_7549
f_bxadohdl
cursorStack
field_70457_g
carried
private int
h
timesChanged
field_7542
f_zhaszfsy
changeCount
field_194017_h

Constructor summary

ModifierConstructor
public (Player player)

Method summary

Modifier and TypeMethod
public ItemStack
f()
getSelected()
method_7391()
m_iaxrzmrh()
getMainHandStack()
func_70448_g()
getItemInHand()
public static int
g()
getSelectionSize()
method_7368()
m_wfyaqwua()
getHotbarSize()
func_70451_h()
getHotbarSize()
private boolean
a(bmb arg0, bmb arg1)
hasRemainingSpaceForItem(ItemStack arg0, ItemStack arg1)
method_7393(class_1799 arg0, class_1799 arg1)
m_sffdzeof(C_sddaxwyk arg0, C_sddaxwyk arg1)
canStackAddMore(ItemStack existingStack, ItemStack stack)
func_184436_a(ItemStack arg0, ItemStack arg1)
isSimilarAndNotFull(ItemStack arg0, ItemStack arg1)
private boolean
b(bmb arg0, bmb arg1)
isSameItem(ItemStack arg0, ItemStack arg1)
method_7392(class_1799 arg0, class_1799 arg1)
m_qfgvujql(C_sddaxwyk arg0, C_sddaxwyk arg1)
areItemsEqual(ItemStack stack1, ItemStack stack2)
func_184431_b(ItemStack arg0, ItemStack arg1)
public int
h()
getFreeSlot()
method_7376()
m_foznfroj()
getEmptySlot()
func_70447_i()
getFirstEmptySlotIndex()
public void
c(int arg0)
pickSlot(int arg0)
method_7365(int arg0)
m_owslrmqz(int arg0)
swapSlotWithHotbar(int slot)
func_184430_d(int arg0)
public static boolean
d(int arg0)
isHotbarSlot(int arg0)
method_7380(int arg0)
m_xbduwkdk(int arg0)
isValidHotbarIndex(int slot)
func_184435_e(int arg0)
public int
c(bmb arg0)
findSlotMatchingUnusedItem(ItemStack arg0)
method_7371(class_1799 arg0)
m_zqdwohxx(C_sddaxwyk arg0)
method_7371(ItemStack arg0)
func_194014_c(ItemStack arg0)
public int
i()
getSuitableHotbarSlot()
method_7386()
m_cbuksxzb()
getSwappableHotbarSlot()
func_184433_k()
public int
a(Predicate<bmb> arg0, int arg1, aon arg2)
clearOrCountMatchingItems(Predicate<ItemStack> arg0, int arg1, Container arg2)
method_29280(Predicate<class_1799> arg0, int arg1, class_1263 arg2)
m_iwhnbmkt(Predicate<C_sddaxwyk> arg0, int arg1, C_pjtstjoq arg2)
remove(Predicate<ItemStack> shouldRemove, int maxCount, Inventory craftingInventory)
func_234564_a_(Predicate<ItemStack> arg0, int arg1, IInventory arg2)
private int
i(bmb arg0)
addResource(ItemStack arg0)
method_7366(class_1799 arg0)
m_xukgmrex(C_sddaxwyk arg0)
addStack(ItemStack stack)
func_70452_e(ItemStack arg0)
private int
d(int arg0, bmb arg1)
addResource(int arg0, ItemStack arg1)
method_7385(int arg0, class_1799 arg1)
m_gdvykakf(int arg0, C_sddaxwyk arg1)
addStack(int slot, ItemStack stack)
func_191973_d(int arg0, ItemStack arg1)
public int
d(bmb arg0)
getSlotWithRemainingSpace(ItemStack arg0)
method_7390(class_1799 arg0)
m_mqaefcrf(C_sddaxwyk arg0)
getOccupiedSlotWithRoomForStack(ItemStack stack)
func_70432_d(ItemStack arg0)
firstPartial(ItemStack arg0)
public void
j()
tick()
method_7381()
m_idztfwtx()
updateItems()
func_70429_k()
public boolean
e(bmb arg0)
add(ItemStack arg0)
method_7394(class_1799 arg0)
m_attrqiui(C_sddaxwyk arg0)
insertStack(ItemStack stack)
func_70441_a(ItemStack arg0)
pickup(ItemStack arg0)
public boolean
c(int arg0, bmb arg1)
add(int arg0, ItemStack arg1)
method_7367(int arg0, class_1799 arg1)
m_joxvrlyb(int arg0, C_sddaxwyk arg1)
insertStack(int slot, ItemStack stack)
func_191971_c(int arg0, ItemStack arg1)
public void
a(brx arg0, bmb arg1)
placeItemBackInInventory(Level arg0, ItemStack arg1)
method_7398(class_1937 arg0, class_1799 arg1)
m_npfneiti(C_cdctfzbn arg0, C_sddaxwyk arg1)
offerOrDrop(World world, ItemStack stack)
func_191975_a(World arg0, ItemStack arg1)
public ItemStack
a(int arg0, int arg1)
removeItem(int arg0, int arg1)
method_5434(int arg0, int arg1)
m_jqhmcoxx(int arg0, int arg1)
removeStack(int arg0, int arg1)
func_70298_a(int arg0, int arg1)
splitStack(int arg0, int arg1)
public void
f(bmb arg0)
removeItem(ItemStack arg0)
method_7378(class_1799 arg0)
m_bsuceyru(C_sddaxwyk arg0)
removeOne(ItemStack stack)
func_184437_d(ItemStack arg0)
public ItemStack
b(int arg0)
removeItemNoUpdate(int arg0)
method_5441(int arg0)
m_ujfmycis(int arg0)
removeStack(int arg0)
func_70304_b(int arg0)
splitWithoutUpdate(int arg0)
public void
a(int arg0, bmb arg1)
setItem(int arg0, ItemStack arg1)
method_5447(int arg0, class_1799 arg1)
m_akaynoad(int arg0, C_sddaxwyk arg1)
setStack(int arg0, ItemStack arg1)
func_70299_a(int arg0, ItemStack arg1)
setItem(int arg0, ItemStack arg1)
public float
a(ceh arg0)
getDestroySpeed(BlockState arg0)
method_7370(class_2680 arg0)
m_ooomafpi(C_txtbiemp arg0)
getBlockBreakingSpeed(BlockState block)
func_184438_a(BlockState arg0)
public ListTag
a(mj arg0)
save(ListTag arg0)
method_7384(class_2499 arg0)
m_julzohay(C_hqhtfwlr arg0)
writeNbt(NbtList nbtList)
func_70442_a(ListNBT arg0)
public void
b(mj arg0)
load(ListTag arg0)
method_7397(class_2499 arg0)
m_wisvsnby(C_hqhtfwlr arg0)
readNbt(NbtList nbtList)
func_70443_b(ListNBT arg0)
public int
Z_()
getContainerSize()
method_5439()
m_dmbfvefd()
size()
func_70302_i_()
getSize()
public boolean
c()
isEmpty()
method_5442()
m_ohnjwggm()
isEmpty()
func_191420_l()
isEmpty()
public ItemStack
a(int arg0)
getItem(int arg0)
method_5438(int arg0)
m_jzosiplc(int arg0)
getStack(int arg0)
func_70301_a(int arg0)
getItem(int arg0)
public Component
R()
getName()
method_5477()
m_ymwfywvb()
getName()
func_200200_C_()
getDisplayName()
public void
a(apk arg0, float arg1)
hurtArmor(DamageSource arg0, float arg1)
method_7375(class_1282 arg0, float arg1)
m_wzjlweac(C_sbxfkpyv arg0, float arg1)
damageArmor(DamageSource damageSource, float arg1)
func_234563_a_(DamageSource arg0, float arg1)
public void
k()
dropAll()
method_7388()
m_wtjgxszd()
dropAll()
func_70436_m()
dropContents()
public void
X_()
setChanged()
method_5431()
m_otuwtdni()
markDirty()
func_70296_d()
update()
public void
g(bmb arg0)
setCarried(ItemStack arg0)
method_7396(class_1799 arg0)
m_eudjbxsi(C_sddaxwyk arg0)
setCursorStack(ItemStack stack)
func_70437_b(ItemStack arg0)
setCarried(ItemStack arg0)
public ItemStack
m()
getCarried()
method_7399()
m_qkbmhvcm()
getCursorStack()
func_70445_o()
getCarried()
public boolean
a(bfw arg0)
stillValid(Player arg0)
method_5443(class_1657 arg0)
m_noresdqq(C_jzrpycqo arg0)
canPlayerUse(PlayerEntity arg0)
func_70300_a(PlayerEntity arg0)
public boolean
h(bmb arg0)
contains(ItemStack arg0)
method_7379(class_1799 arg0)
m_gkniurqx(C_sddaxwyk arg0)
contains(ItemStack stack)
func_70431_c(ItemStack arg0)
public void
a(bfv arg0)
replaceWith(Inventory arg0)
method_7377(class_1661 arg0)
m_cwfzntkt(C_sxzqocrm arg0)
clone(PlayerInventory other)
func_70455_b(PlayerInventory arg0)
public void
Y_()
clearContent()
method_5448()
m_rufrndtr()
clear()
func_174888_l()
clear()
public void
a(bfy arg0)
fillStackedContents(StackedContents arg0)
method_7387(class_1662 arg0)
m_cpwlhjly(C_nyagoaau arg0)
populateRecipeFinder(RecipeMatcher finder)
func_201571_a(RecipeItemHelper arg0)
public void
a(bmb arg0)
setPickedItem(ItemStack arg0)
method_7374(class_1799 arg0)
m_zdusbkte(C_sddaxwyk arg0)
addPickBlock(ItemStack stack)
func_184434_a(ItemStack arg0)
public int
b(bmb arg0)
findSlotMatchingItem(ItemStack arg0)
method_7395(class_1799 arg0)
m_sqstcgyz(C_sddaxwyk arg0)
getSlotWithStack(ItemStack stack)
func_184429_b(ItemStack arg0)
public void
a(double arg0)
swapPaint(double arg0)
method_7373(double arg0)
m_yhsscjlt(double arg0)
scrollInHotbar(double scrollAmount)
func_195409_a(double arg0)
public ItemStack
e(int arg0)
getArmor(int arg0)
method_7372(int arg0)
m_yglnlrvd(int arg0)
getArmorStack(int slot)
func_70440_f(int arg0)
public int
l()
getTimesChanged()
method_7364()
m_upysxszu()
getChangeCount()
func_194015_p()
public boolean
a(ael<blx> arg0)
contains(Tag<Item> arg0)
method_7382(class_3494<class_1792> arg0)
m_plhigzeg(C_mokekhxv<C_vorddnax> arg0)
contains(Tag<Item> tag)
func_199712_a(ITag<Item> arg0)