net.minecraft.world.entity.player

public class Inventory

implements Container, Nameable

byn
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.PlayerInventory

Field summary

Modifier and TypeField
public static final int
c
POP_TIME_DURATION
field_30637
f_qmvikygt
ITEM_USAGE_COOLDOWN
ITEM_USAGE_COOLDOWN
f_150064_
public static final int
d
INVENTORY_SIZE
field_30638
f_ddlbxbuu
MAIN_SIZE
MAIN_SIZE
f_150065_
private static final int
n
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 static final int[]
g
ALL_ARMOR_SLOTS
field_33767
f_baeujaxs
ARMOR_SLOTS
ARMOR_SLOTS
f_150068_
public static final int[]
h
HELMET_SLOT_ONLY
field_33768
f_liupqzxa
HELMET_SLOTS
HELMET_SLOTS
f_150069_
public final NonNullList<ItemStack>
i
items
field_7547
f_atsclqcy
main
main
f_35974_
public final NonNullList<ItemStack>
j
armor
field_7548
f_stpscvms
armor
armor
f_35975_
public final NonNullList<ItemStack>
k
offhand
field_7544
f_qvtlcdqt
offHand
offHand
f_35976_
private final List<NonNullList<ItemStack>>
o
compartments
field_7543
f_rvivffsn
combinedInventory
combinedInventory
f_35979_
public int
l
selected
field_7545
f_hhxlkrup
selectedSlot
selectedSlot
f_35977_
public final Player
m
player
field_7546
f_muifvbni
player
player
f_35978_
private int
p
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(cfz arg0, cfz 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
a(cfz 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
b(cfz 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 int
c(cfz arg0)
findSlotMatchingUnusedItem(ItemStack arg0)
method_7371(class_1799 arg0)
m_zqdwohxx(C_sddaxwyk arg0)
indexOf(ItemStack stack)
indexOf(ItemStack stack)
m_36043_(C_1391_ arg0)
public int
i()
getSuitableHotbarSlot()
method_7386()
m_cbuksxzb()
getSwappableHotbarSlot()
getSwappableHotbarSlot()
m_36065_()
public void
a(double arg0)
swapPaint(double arg0)
method_7373(double arg0)
m_yhsscjlt(double arg0)
scrollInHotbar(double scrollAmount)
scrollInHotbar(double scrollAmount)
m_35988_(double arg0)
public int
a(Predicate<cfz> arg0, int arg1, bdq 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
i(cfz 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, cfz 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
d(cfz 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
e(cfz 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, cfz 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
f(cfz 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(cfz 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 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
g(cfz 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, cfz 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(dcb 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(qx 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(qx 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
ab_()
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
Z()
getName()
method_5477()
m_ymwfywvb()
getName()
getName()
m_7755_()
public ItemStack
e(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
a(ben arg0, float arg1, int[] arg2)
hurtArmor(DamageSource arg0, float arg1, int[] arg2)
method_7375(class_1282 arg0, float arg1, int[] arg2)
m_wzjlweac(C_sbxfkpyv arg0, float arg1, int[] arg2)
damageArmor(DamageSource damageSource, float amount, int[] slots)
damageArmor(DamageSource damageSource, float amount, int[] slots)
m_150072_(C_489_ p_150074_, float p_150075_, int[] arg2)
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(byo 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
h(cfz 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(anl<cfu> 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 void
a(byn 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(bys arg0)
fillStackedContents(StackedContents arg0)
method_7387(class_1662 arg0)
m_cpwlhjly(C_nyagoaau arg0)
populateRecipeFinder(RecipeMatcher finder)
populateRecipeFinder(RecipeMatcher finder)
m_36010_(C_1145_ 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)