net.minecraft.world.entity.player

public class Inventory

implements Container, Nameable

beb
net.minecraft.world.entity.player.Inventory
net.minecraft.class_1661
net.minecraft.entity.player.PlayerInventory
net.minecraft.entity.player.PlayerInventory
net.minecraft.server.v1_16_R1.PlayerInventory

Field summary

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

Constructor summary

ModifierConstructor
public (Player player)

Method summary

Modifier and TypeMethod
public ItemStack
f()
getSelected()
method_7391()
getMainHandStack()
func_70448_g()
getItemInHand()
public static int
g()
getSelectionSize()
method_7368()
getHotbarSize()
func_70451_h()
getHotbarSize()
private boolean
a(bki arg0, bki arg1)
hasRemainingSpaceForItem(ItemStack arg0, ItemStack arg1)
method_7393(class_1799 arg0, class_1799 arg1)
canStackAddMore(ItemStack existingStack, ItemStack stack)
func_184436_a(ItemStack arg0, ItemStack arg1)
isSimilarAndNotFull(ItemStack arg0, ItemStack arg1)
private boolean
b(bki arg0, bki arg1)
isSameItem(ItemStack arg0, ItemStack arg1)
method_7392(class_1799 arg0, class_1799 arg1)
areItemsEqual(ItemStack stack1, ItemStack stack2)
func_184431_b(ItemStack arg0, ItemStack arg1)
public int
h()
getFreeSlot()
method_7376()
getEmptySlot()
func_70447_i()
getFirstEmptySlotIndex()
public void
c(int arg0)
pickSlot(int arg0)
method_7365(int arg0)
swapSlotWithHotbar(int hotbarSlot)
func_184430_d(int arg0)
public static boolean
d(int arg0)
isHotbarSlot(int arg0)
method_7380(int arg0)
isValidHotbarIndex(int slot)
func_184435_e(int arg0)
public int
c(bki arg0)
findSlotMatchingUnusedItem(ItemStack arg0)
method_7371(class_1799 arg0)
method_7371(ItemStack arg0)
func_194014_c(ItemStack arg0)
public int
i()
getSuitableHotbarSlot()
method_7386()
getSwappableHotbarSlot()
func_184433_k()
public int
a(Predicate<bki> arg0, int arg1, amz arg2)
clearOrCountMatchingItems(Predicate<ItemStack> arg0, int arg1, Container arg2)
method_29280(Predicate<class_1799> arg0, int arg1, class_1263 arg2)
method_29280(Predicate<ItemStack> arg0, int arg1, Inventory arg2)
func_234564_a_(Predicate<ItemStack> arg0, int arg1, IInventory arg2)
private int
i(bki arg0)
addResource(ItemStack arg0)
method_7366(class_1799 arg0)
addStack(ItemStack stack)
func_70452_e(ItemStack arg0)
private int
d(int arg0, bki arg1)
addResource(int arg0, ItemStack arg1)
method_7385(int arg0, class_1799 arg1)
addStack(int slot, ItemStack stack)
func_191973_d(int arg0, ItemStack arg1)
public int
d(bki arg0)
getSlotWithRemainingSpace(ItemStack arg0)
method_7390(class_1799 arg0)
getOccupiedSlotWithRoomForStack(ItemStack stack)
func_70432_d(ItemStack arg0)
firstPartial(ItemStack arg0)
public void
j()
tick()
method_7381()
updateItems()
func_70429_k()
public boolean
e(bki arg0)
add(ItemStack arg0)
method_7394(class_1799 arg0)
insertStack(ItemStack stack)
func_70441_a(ItemStack arg0)
pickup(ItemStack arg0)
public boolean
c(int arg0, bki arg1)
add(int arg0, ItemStack arg1)
method_7367(int arg0, class_1799 arg1)
insertStack(int slot, ItemStack stack)
func_191971_c(int arg0, ItemStack arg1)
public void
a(bqb arg0, bki arg1)
placeItemBackInInventory(Level arg0, ItemStack arg1)
method_7398(class_1937 arg0, class_1799 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)
removeStack(int arg0, int arg1)
func_70298_a(int arg0, int arg1)
splitStack(int arg0, int arg1)
public void
f(bki arg0)
removeItem(ItemStack arg0)
method_7378(class_1799 arg0)
removeOne(ItemStack stack)
func_184437_d(ItemStack arg0)
public ItemStack
b(int arg0)
removeItemNoUpdate(int arg0)
method_5441(int arg0)
removeStack(int arg0)
func_70304_b(int arg0)
splitWithoutUpdate(int arg0)
public void
a(int arg0, bki arg1)
setItem(int arg0, ItemStack arg1)
method_5447(int arg0, class_1799 arg1)
setStack(int arg0, ItemStack arg1)
func_70299_a(int arg0, ItemStack arg1)
setItem(int arg0, ItemStack arg1)
public float
a(cfj arg0)
getDestroySpeed(BlockState arg0)
method_7370(class_2680 arg0)
getBlockBreakingSpeed(BlockState block)
func_184438_a(BlockState arg0)
public ListTag
a(lk arg0)
save(ListTag arg0)
method_7384(class_2499 arg0)
serialize(ListTag tag)
func_70442_a(ListNBT arg0)
public void
b(lk arg0)
load(ListTag arg0)
method_7397(class_2499 arg0)
deserialize(ListTag tag)
func_70443_b(ListNBT arg0)
public int
ab_()
getContainerSize()
method_5439()
size()
func_70302_i_()
getSize()
public boolean
c()
isEmpty()
method_5442()
isEmpty()
func_191420_l()
isEmpty()
public ItemStack
a(int arg0)
getItem(int arg0)
method_5438(int arg0)
getStack(int arg0)
func_70301_a(int arg0)
getItem(int arg0)
public Component
P()
getName()
method_5477()
getName()
func_200200_C_()
getDisplayName()
public void
a(anw arg0, float arg1)
hurtArmor(DamageSource arg0, float arg1)
method_7375(class_1282 arg0, float arg1)
damageArmor(DamageSource damageSource, float arg1)
func_234563_a_(DamageSource arg0, float arg1)
public void
k()
dropAll()
method_7388()
dropAll()
func_70436_m()
dropContents()
public void
Z_()
setChanged()
method_5431()
markDirty()
func_70296_d()
update()
public void
g(bki arg0)
setCarried(ItemStack arg0)
method_7396(class_1799 arg0)
setCursorStack(ItemStack stack)
func_70437_b(ItemStack arg0)
setCarried(ItemStack arg0)
public ItemStack
m()
getCarried()
method_7399()
getCursorStack()
func_70445_o()
getCarried()
public boolean
a(bec arg0)
stillValid(Player arg0)
method_5443(class_1657 arg0)
canPlayerUse(PlayerEntity arg0)
func_70300_a(PlayerEntity arg0)
public boolean
h(bki arg0)
contains(ItemStack arg0)
method_7379(class_1799 arg0)
contains(ItemStack stack)
func_70431_c(ItemStack arg0)
public void
a(beb arg0)
replaceWith(Inventory arg0)
method_7377(class_1661 arg0)
clone(PlayerInventory other)
func_70455_b(PlayerInventory arg0)
public void
aa_()
clearContent()
method_5448()
clear()
func_174888_l()
clear()
public void
a(bee arg0)
fillStackedContents(StackedContents arg0)
method_7387(class_1662 arg0)
populateRecipeFinder(RecipeFinder finder)
func_201571_a(RecipeItemHelper arg0)
public void
a(bki arg0)
setPickedItem(ItemStack arg0)
method_7374(class_1799 arg0)
addPickBlock(ItemStack stack)
func_184434_a(ItemStack arg0)
public int
b(bki arg0)
findSlotMatchingItem(ItemStack arg0)
method_7395(class_1799 arg0)
getSlotWithStack(ItemStack stack)
func_184429_b(ItemStack arg0)
public void
a(double arg0)
swapPaint(double arg0)
method_7373(double arg0)
scrollInHotbar(double scrollAmount)
func_195409_a(double arg0)
public ItemStack
e(int arg0)
getArmor(int arg0)
method_7372(int arg0)
getArmorStack(int slot)
func_70440_f(int arg0)
public int
l()
getTimesChanged()
method_7364()
getChangeCount()
func_194015_p()
public boolean
a(adf<bke> arg0)
contains(Tag<Item> arg0)
method_7382(class_3494<class_1792> arg0)
contains(Tag<Item> tag)
func_199712_a(ITag<Item> arg0)