History - net.minecraft.entity.player.PlayerInventory

26.3-snapshot-3

Names

Fields

Constructors

Methods

26.3-snapshot-2

Names

Fields

Constructors

Methods

26.3-snapshot-1

Names

Fields

Constructors

Methods

26.2

Names

Fields

Constructors

Methods

26.1.2

Names

Fields

Constructors

Methods

26.1.1

Names

Fields

Constructors

Methods

26.1

Names

Fields

Constructors

Methods

1.21.11_unobfuscated

Names

net.minecraft.world.entity.player.Inventory

net.minecraft.class_1661

net.minecraft.entity.player.PlayerInventory

Fields

int: POP_TIME_DURATION, field_30637, ITEM_USAGE_COOLDOWN

int: INVENTORY_SIZE, field_30638, MAIN_SIZE

int: SELECTION_SIZE, field_30641, HOTBAR_SIZE

int: SLOT_OFFHAND, field_30639, OFF_HAND_SLOT

int: SLOT_BODY_ARMOR, field_60982, BODY_SLOT

int: SLOT_SADDLE, field_60983, SADDLE_SLOT

int: NOT_FOUND_INDEX, field_30640, NOT_FOUND

it.unimi.dsi.fastutil.ints.Int2ObjectMap<EquipmentSlot>: EQUIPMENT_SLOT_MAPPING, field_56551, EQUIPMENT_SLOTS

Text: DEFAULT_NAME, field_63028, NAME

DefaultedList<ItemStack>: items, field_7547, main

int: selected, field_7545, selectedSlot

PlayerEntity: player, field_7546, player

EntityEquipment: equipment, field_56552, equipment

int: timesChanged, field_7542, changeCount

Constructors

(PlayerEntity, EntityEquipment)

Methods

int (): getSelectedSlot, method_67532, getSelectedSlot

void (int): setSelectedSlot, method_61496, setSelectedSlot

ItemStack (): getSelectedItem, method_7391, getSelectedStack

ItemStack (ItemStack): setSelectedItem, method_67531, setSelectedStack

int (): getSelectionSize, method_7368, getHotbarSize

DefaultedList<ItemStack> (): getNonEquipmentItems, method_67533, getMainStacks

boolean (ItemStack, ItemStack): hasRemainingSpaceForItem, method_7393, canStackAddMore

int (): getFreeSlot, method_7376, getEmptySlot

void (ItemStack): addAndPickItem, method_65126, swapStackWithHotbar

void (int): pickSlot, method_7365, swapSlotWithHotbar

boolean (int): isHotbarSlot, method_7380, isValidHotbarIndex

int (ItemStack): findSlotMatchingItem, method_7395, getSlotWithStack

boolean (ItemStack): isUsableForCrafting, method_61495, usableWhenFillingSlot

int (RegistryEntry<Item>, ItemStack): findSlotMatchingCraftingIngredient, method_61494, getMatchingSlot

int (): getSuitableHotbarSlot, method_7386, getSwappableHotbarSlot

int (Predicate<ItemStack>, int, Inventory): clearOrCountMatchingItems, method_29280, remove

int (ItemStack): addResource, method_7366, addStack

int (int, ItemStack): addResource, method_7385, addStack

int (ItemStack): getSlotWithRemainingSpace, method_7390, getOccupiedSlotWithRoomForStack

void (): tick, method_7381, updateItems

boolean (ItemStack): add, method_7394, insertStack

boolean (int, ItemStack): add, method_7367, insertStack

void (ItemStack): placeItemBackInInventory, method_7398, offerOrDrop

void (ItemStack, boolean): placeItemBackInInventory, method_32338, offer

SetPlayerInventoryS2CPacket (int): createInventoryUpdatePacket, method_61497, createSlotSetPacket

ItemStack (int, int): removeItem, method_5434, removeStack

void (ItemStack): removeItem, method_7378, removeOne

ItemStack (int): removeItemNoUpdate, method_5441, removeStack

void (int, ItemStack): setItem, method_5447, setStack

void (WriteView$ListAppender<StackWithSlot>): save, method_7384, writeData

void (ReadView$TypedListReadView<StackWithSlot>): load, method_7397, readData

int (): getContainerSize, method_5439, size

boolean (): isEmpty, method_5442, isEmpty

ItemStack (int): getItem, method_5438, getStack

Text (): getName, method_5477, getName

void (): dropAll, method_7388, dropAll

void (): setChanged, method_5431, markDirty

int (): getTimesChanged, method_7364, getChangeCount

boolean (PlayerEntity): stillValid, method_5443, canPlayerUse

boolean (ItemStack): contains, method_7379, contains

boolean (TagKey<Item>): contains, method_7382, contains

boolean (Predicate<ItemStack>): contains, method_55753, contains

void (PlayerInventory): replaceWith, method_7377, clone

void (): clearContent, method_5448, clear

void (RecipeFinder): fillStackedContents, method_7387, populateRecipeFinder

ItemStack (boolean): removeFromSelected, method_37417, dropSelectedItem

String (ItemStack): lambda$add$0, method_7389, method_7389