net.minecraft.world.entity.player

public class Inventory

implements Container, Nameable

ayf
net.minecraft.world.entity.player.Inventory
net.minecraft.class_1661
net.minecraft.entity.player.PlayerInventory
net.minecraft.entity.player.PlayerInventory
net.minecraft.server.v1_15_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(bek arg0, bek 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(bek arg0, bek 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(bek arg0)
findSlotMatchingUnusedItem(ItemStack arg0)
method_7371(class_1799 arg0)
func_194014_c(ItemStack arg0)
public int
i()
getSuitableHotbarSlot()
method_7386()
getSwappableHotbarSlot()
func_184433_k()
public int
a(Predicate<bek> arg0, int arg1)
clearInventory(Predicate<ItemStack> arg0, int arg1)
method_7369(Predicate<class_1799> arg0, int arg1)
func_195408_a(Predicate<ItemStack> arg0, int arg1)
private int
i(bek arg0)
addResource(ItemStack arg0)
method_7366(class_1799 arg0)
addStack(ItemStack stack)
func_70452_e(ItemStack arg0)
private int
d(int arg0, bek 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(bek 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(bek 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, bek 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(bjt arg0, bek 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)
takeInvStack(int arg0, int arg1)
func_70298_a(int arg0, int arg1)
splitStack(int arg0, int arg1)
public void
f(bek 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)
removeInvStack(int arg0)
func_70304_b(int arg0)
splitWithoutUpdate(int arg0)
public void
a(int arg0, bek arg1)
setItem(int arg0, ItemStack arg1)
method_5447(int arg0, class_1799 arg1)
setInvStack(int arg0, ItemStack arg1)
func_70299_a(int arg0, ItemStack arg1)
setItem(int arg0, ItemStack arg1)
public float
a(byg arg0)
getDestroySpeed(BlockState arg0)
method_7370(class_2680 arg0)
getBlockBreakingSpeed(BlockState block)
func_184438_a(BlockState arg0)
public ListTag
a(jz arg0)
save(ListTag arg0)
method_7384(class_2499 arg0)
serialize(ListTag tag)
func_70442_a(ListNBT arg0)
public void
b(jz arg0)
load(ListTag arg0)
method_7397(class_2499 arg0)
deserialize(ListTag tag)
func_70443_b(ListNBT arg0)
public int
O_()
getContainerSize()
method_5439()
getInvSize()
func_70302_i_()
getSize()
public boolean
c()
isEmpty()
method_5442()
isInvEmpty()
func_191420_l()
isNotEmpty()
public ItemStack
a(int arg0)
getItem(int arg0)
method_5438(int arg0)
getInvStack(int arg0)
func_70301_a(int arg0)
getItem(int arg0)
public Component
M()
getName()
method_5477()
getName()
func_200200_C_()
getDisplayName()
public boolean
b(byg arg0)
canDestroy(BlockState arg0)
method_7383(class_2680 arg0)
isUsingEffectiveTool(BlockState arg0)
func_184432_b(BlockState arg0)
public void
a(float arg0)
hurtArmor(float arg0)
method_7375(float arg0)
damageArmor(float armor)
func_70449_g(float arg0)
public void
k()
dropAll()
method_7388()
dropAll()
func_70436_m()
dropContents()
public void
e()
setChanged()
method_5431()
markDirty()
func_70296_d()
update()
public void
g(bek 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(ayg arg0)
stillValid(Player arg0)
method_5443(class_1657 arg0)
canPlayerUseInv(PlayerEntity arg0)
func_70300_a(PlayerEntity arg0)
public boolean
h(bek arg0)
contains(ItemStack arg0)
method_7379(class_1799 arg0)
contains(ItemStack stack)
func_70431_c(ItemStack arg0)
public void
a(ayf arg0)
replaceWith(Inventory arg0)
method_7377(class_1661 arg0)
clone(PlayerInventory other)
func_70455_b(PlayerInventory arg0)
public void
N_()
clearContent()
method_5448()
clear()
func_174888_l()
clear()
public void
a(ayi arg0)
fillStackedContents(StackedContents arg0)
method_7387(class_1662 arg0)
populateRecipeFinder(RecipeFinder finder)
func_201571_a(RecipeItemHelper arg0)
public void
a(bek arg0)
setPickedItem(ItemStack arg0)
method_7374(class_1799 arg0)
addPickBlock(ItemStack arg0)
func_184434_a(ItemStack arg0)
public int
b(bek 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(aaz<bef> arg0)
contains(Tag<Item> arg0)
method_7382(class_3494<class_1792> arg0)
contains(Tag<Item> tag)
func_199712_a(Tag<Item> arg0)