net.minecraft.world.entity.player

public class Inventory

implements Container, Nameable

cpv
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.src.C_1140_
net.minecraft.world.entity.player.Input

Field summary

Modifier and TypeField
public static final int
b
POP_TIME_DURATION
field_30637
f_qmvikygt
ITEM_USAGE_COOLDOWN
ITEM_USAGE_COOLDOWN
f_150064_
public static final int
c
INVENTORY_SIZE
field_30638
f_ddlbxbuu
MAIN_SIZE
MAIN_SIZE
f_150065_
public static final int
d
SELECTION_SIZE
field_30641
f_tpmsgudi
HOTBAR_SIZE
HOTBAR_SIZE
f_150070_
public static final int
e
SLOT_OFFHAND
field_30639
f_rxqjiapy
OFF_HAND_SLOT
OFF_HAND_SLOT
f_150066_
public static final int
f
NOT_FOUND_INDEX
field_30640
f_efjgtpgx
NOT_FOUND
NOT_FOUND
f_150067_
public final NonNullList<ItemStack>
g
items
field_7547
f_atsclqcy
main
main
f_35974_
public final NonNullList<ItemStack>
h
armor
field_7548
f_stpscvms
armor
armor
f_35975_
public final NonNullList<ItemStack>
i
offhand
field_7544
f_qvtlcdqt
offHand
offHand
f_35976_
private final List<NonNullList<ItemStack>>
l
compartments
field_7543
f_rvivffsn
combinedInventory
combinedInventory
f_35979_
public int
j
selected
field_7545
f_hhxlkrup
selectedSlot
selectedSlot
f_35977_
public final Player
k
player
field_7546
f_muifvbni
player
player
f_35978_
private int
m
timesChanged
field_7542
f_zhaszfsy
changeCount
changeCount
f_35981_

Constructor summary

ModifierConstructor
public (Player player)

Method summary

Modifier and TypeMethod
public ItemStack
f()
getSelected()
method_7391()
m_iaxrzmrh()
getMainHandStack()
getMainHandStack()
m_36056_()
public static int
g()
getSelectionSize()
method_7368()
m_wfyaqwua()
getHotbarSize()
getHotbarSize()
m_36059_()
private boolean
a(cxo arg0, cxo 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)
canStackAddMore(ItemStack existingStack, ItemStack stack)
m_36014_(C_1391_ p_36016_, C_1391_ arg1)
public int
h()
getFreeSlot()
method_7376()
m_foznfroj()
getEmptySlot()
getEmptySlot()
m_36062_()
public void
b(cxo arg0)
setPickedItem(ItemStack arg0)
method_7374(class_1799 arg0)
m_zdusbkte(C_sddaxwyk arg0)
addPickBlock(ItemStack stack)
addPickBlock(ItemStack stack)
m_36012_(C_1391_ arg0)
public void
c(int arg0)
pickSlot(int arg0)
method_7365(int arg0)
m_owslrmqz(int arg0)
swapSlotWithHotbar(int slot)
swapSlotWithHotbar(int slot)
m_36038_(int arg0)
public static boolean
d(int arg0)
isHotbarSlot(int arg0)
method_7380(int arg0)
m_xbduwkdk(int arg0)
isValidHotbarIndex(int slot)
isValidHotbarIndex(int slot)
m_36045_(int p_36046_)
public int
c(cxo arg0)
findSlotMatchingItem(ItemStack arg0)
method_7395(class_1799 arg0)
m_sqstcgyz(C_sddaxwyk arg0)
getSlotWithStack(ItemStack stack)
getSlotWithStack(ItemStack stack)
m_36030_(C_1391_ arg0)
public static boolean
d(cxo arg0)
isUsableForCrafting(ItemStack arg0)
method_61495(class_1799 arg0)
m_eddjnvon(C_sddaxwyk arg0)
usableWhenFillingSlot(ItemStack stack)
usableForCrafting(ItemStack stack)
m_352724_(C_1391_ p_362871_)
public int
a(jq<cxk> arg0)
findSlotMatchingCraftingIngredient(Holder<Item> arg0)
method_61494(class_6880<class_1792> arg0)
m_qstschyr(C_cjzoxshv<C_vorddnax> arg0)
getMatchingSlot(RegistryEntry<Item> item)
m_353877_(C_203228_<C_1381_> arg0)
public int
i()
getSuitableHotbarSlot()
method_7386()
m_cbuksxzb()
getSwappableHotbarSlot()
getSwappableHotbarSlot()
m_36065_()
public void
e(int arg0)
setSelectedHotbarSlot(int arg0)
method_61496(int arg0)
m_grrjbqkb(int arg0)
setSelectedSlot(int slot)
m_354336_(int arg0)
public int
a(Predicate<cxo> arg0, int arg1, btb 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)
remove(Predicate<ItemStack> shouldRemove, int maxCount, Inventory craftingInventory)
m_36022_(Predicate<C_1391_> p_36024_, int p_36025_, C_464_ arg2)
private int
j(cxo arg0)
addResource(ItemStack arg0)
method_7366(class_1799 arg0)
m_xukgmrex(C_sddaxwyk arg0)
addStack(ItemStack stack)
addStack(ItemStack stack)
m_36066_(C_1391_ arg0)
private int
d(int arg0, cxo 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)
addStack(int slot, ItemStack stack)
m_36047_(int p_36049_, C_1391_ arg1)
public int
e(cxo arg0)
getSlotWithRemainingSpace(ItemStack arg0)
method_7390(class_1799 arg0)
m_mqaefcrf(C_sddaxwyk arg0)
getOccupiedSlotWithRoomForStack(ItemStack stack)
getOccupiedSlotWithRoomForStack(ItemStack stack)
m_36050_(C_1391_ arg0)
public void
j()
tick()
method_7381()
m_idztfwtx()
updateItems()
updateItems()
m_36068_()
public boolean
f(cxo arg0)
add(ItemStack arg0)
method_7394(class_1799 arg0)
m_attrqiui(C_sddaxwyk arg0)
insertStack(ItemStack stack)
insertStack(ItemStack stack)
m_36054_(C_1391_ arg0)
public boolean
c(int arg0, cxo 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)
insertStack(int slot, ItemStack stack)
m_36040_(int p_36042_, C_1391_ arg1)
public void
g(cxo arg0)
placeItemBackInInventory(ItemStack arg0)
method_7398(class_1799 arg0)
m_hjszshmr(C_sddaxwyk arg0)
offerOrDrop(ItemStack stack)
offerOrDrop(ItemStack stack)
m_150079_(C_1391_ arg0)
public void
a(cxo arg0, boolean arg1)
placeItemBackInInventory(ItemStack arg0, boolean arg1)
method_32338(class_1799 arg0, boolean arg1)
m_wxyieztp(C_sddaxwyk arg0, boolean arg1)
offer(ItemStack stack, boolean notifiesClient)
offer(ItemStack stack, boolean notifiesClient)
m_150076_(C_1391_ p_150078_, boolean arg1)
public ClientboundSetPlayerInventoryPacket
f(int arg0)
createInventoryUpdatePacket(int arg0)
method_61497(int arg0)
m_lhflraib(int arg0)
createSlotSetPacket(int slot)
m_354148_(int arg0)
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)
removeStack(int arg0, int arg1)
m_7407_(int p_35994_, int arg1)
public void
h(cxo arg0)
removeItem(ItemStack arg0)
method_7378(class_1799 arg0)
m_bsuceyru(C_sddaxwyk arg0)
removeOne(ItemStack stack)
removeOne(ItemStack stack)
m_36057_(C_1391_ arg0)
public ItemStack
b(int arg0)
removeItemNoUpdate(int arg0)
method_5441(int arg0)
m_ujfmycis(int arg0)
removeStack(int arg0)
removeStack(int arg0)
m_8016_(int arg0)
public void
a(int arg0, cxo 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)
setStack(int arg0, ItemStack arg1)
m_6836_(int p_36000_, C_1391_ arg1)
public float
a(dxu arg0)
getDestroySpeed(BlockState arg0)
method_7370(class_2680 arg0)
m_ooomafpi(C_txtbiemp arg0)
getBlockBreakingSpeed(BlockState block)
getBlockBreakingSpeed(BlockState block)
m_36020_(C_2064_ arg0)
public ListTag
a(vd arg0)
save(ListTag arg0)
method_7384(class_2499 arg0)
m_julzohay(C_hqhtfwlr arg0)
writeNbt(NbtList nbtList)
writeNbt(NbtList nbtList)
m_36026_(C_4930_ arg0)
public void
b(vd arg0)
load(ListTag arg0)
method_7397(class_2499 arg0)
m_wisvsnby(C_hqhtfwlr arg0)
readNbt(NbtList nbtList)
readNbt(NbtList nbtList)
m_36035_(C_4930_ arg0)
public int
b()
getContainerSize()
method_5439()
m_dmbfvefd()
size()
size()
m_6643_()
public boolean
c()
isEmpty()
method_5442()
m_ohnjwggm()
isEmpty()
isEmpty()
m_7983_()
public ItemStack
a(int arg0)
getItem(int arg0)
method_5438(int arg0)
m_jzosiplc(int arg0)
getStack(int arg0)
getStack(int arg0)
m_8020_(int arg0)
public Component
al()
getName()
method_5477()
m_ymwfywvb()
getName()
getName()
m_7755_()
public ItemStack
g(int arg0)
getArmor(int arg0)
method_7372(int arg0)
m_yglnlrvd(int arg0)
getArmorStack(int slot)
getArmorStack(int slot)
m_36052_(int arg0)
public void
k()
dropAll()
method_7388()
m_wtjgxszd()
dropAll()
dropAll()
m_36071_()
public void
e()
setChanged()
method_5431()
m_phlhitmt()
markDirty()
markDirty()
m_6596_()
public int
l()
getTimesChanged()
method_7364()
m_upysxszu()
getChangeCount()
getChangeCount()
m_36072_()
public boolean
a(cpw arg0)
stillValid(Player arg0)
method_5443(class_1657 arg0)
m_noresdqq(C_jzrpycqo arg0)
canPlayerUse(PlayerEntity arg0)
canPlayerUse(PlayerEntity arg0)
m_6542_(C_1141_ arg0)
public boolean
i(cxo arg0)
contains(ItemStack arg0)
method_7379(class_1799 arg0)
m_gkniurqx(C_sddaxwyk arg0)
contains(ItemStack stack)
contains(ItemStack stack)
m_36063_(C_1391_ arg0)
public boolean
a(ayk<cxk> arg0)
contains(TagKey<Item> arg0)
method_7382(class_6862<class_1792> arg0)
m_agfxrwtb(C_ednuhnnn<C_vorddnax> arg0)
contains(TagKey<Item> tag)
contains(TagKey<Item> key)
m_204075_(C_203208_<C_1381_> arg0)
public boolean
b(Predicate<cxo> arg0)
contains(Predicate<ItemStack> arg0)
method_55753(Predicate<class_1799> arg0)
m_hmwxnoza(Predicate<C_sddaxwyk> arg0)
contains(Predicate<ItemStack> predicate)
hasMatchingStack(Predicate<ItemStack> predicate)
m_321814_(Predicate<C_1391_> arg0)
public void
a(cpv arg0)
replaceWith(Inventory arg0)
method_7377(class_1661 arg0)
m_cwfzntkt(C_sxzqocrm arg0)
clone(PlayerInventory other)
clone(PlayerInventory other)
m_36006_(C_1140_ arg0)
public void
a()
clearContent()
method_5448()
m_rufrndtr()
clear()
clear()
m_6211_()
public void
a(cqb arg0)
fillStackedContents(StackedItemContents arg0)
method_7387(class_9875 arg0)
m_cpwlhjly(C_fcquvjby arg0)
populateRecipeFinder(RecipeFinder finder)
populateRecipeFinder(RecipeFinder arg0)
m_36010_(C_345581_ arg0)
public ItemStack
a(boolean arg0)
removeFromSelected(boolean arg0)
method_37417(boolean arg0)
m_giwgaubz(boolean arg0)
dropSelectedItem(boolean entireStack)
dropSelectedItem(boolean entireStack)
m_182403_(boolean arg0)