Class PlayerInventory

java.lang.Object
net.minecraft.entity.player.PlayerInventory
All Implemented Interfaces:
Iterable<ItemStack>, Inventory, Clearable, Nameable

public class PlayerInventory extends Object implements Inventory, Nameable
Mappings:
Namespace Name
named net/minecraft/entity/player/PlayerInventory
intermediary net/minecraft/class_1661
official cus
  • Field Details

    • ITEM_USAGE_COOLDOWN

      public static final int ITEM_USAGE_COOLDOWN
      The maximum cooldown (5 ticks) applied to timed use items such as the Eye of Ender.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named ITEM_USAGE_COOLDOWN Lnet/minecraft/entity/player/PlayerInventory;ITEM_USAGE_COOLDOWN:I
      intermediary field_30637 Lnet/minecraft/class_1661;field_30637:I
      official b Lcus;b:I
    • MAIN_SIZE

      public static final int MAIN_SIZE
      The number of slots (36) in the main (non-hotbar) section of the inventory.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named MAIN_SIZE Lnet/minecraft/entity/player/PlayerInventory;MAIN_SIZE:I
      intermediary field_30638 Lnet/minecraft/class_1661;field_30638:I
      official c Lcus;c:I
    • HOTBAR_SIZE

      public static final int HOTBAR_SIZE
      The number of columns (9) in the inventory.

      The same value dictates the size of the player's hotbar, excluding the offhand slot.

      See Also:
      Mappings:
      Namespace Name Mixin selector
      named HOTBAR_SIZE Lnet/minecraft/entity/player/PlayerInventory;HOTBAR_SIZE:I
      intermediary field_30641 Lnet/minecraft/class_1661;field_30641:I
      official d Lcus;d:I
    • OFF_HAND_SLOT

      public static final int OFF_HAND_SLOT
      Zero-based index of the offhand slot.

      This value is the result of the sum MAIN_SIZE (36) + ARMOR_SIZE (4).

      See Also:
      Mappings:
      Namespace Name Mixin selector
      named OFF_HAND_SLOT Lnet/minecraft/entity/player/PlayerInventory;OFF_HAND_SLOT:I
      intermediary field_30639 Lnet/minecraft/class_1661;field_30639:I
      official e Lcus;e:I
    • BODY_SLOT

      public static final int BODY_SLOT
      Zero-based index of the body slot.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named BODY_SLOT Lnet/minecraft/entity/player/PlayerInventory;BODY_SLOT:I
      intermediary field_60982 Lnet/minecraft/class_1661;field_60982:I
      official f Lcus;f:I
    • SADDLE_SLOT

      public static final int SADDLE_SLOT
      Zero-based index of the saddle slot.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named SADDLE_SLOT Lnet/minecraft/entity/player/PlayerInventory;SADDLE_SLOT:I
      intermediary field_60983 Lnet/minecraft/class_1661;field_60983:I
      official g Lcus;g:I
    • NOT_FOUND

      public static final int NOT_FOUND
      The slot index (-1) used to indicate no result (item not present / no available space) when querying the inventory's contents or to indicate no preference when inserting an item into the inventory.
      See Also:
      Mappings:
      Namespace Name Mixin selector
      named NOT_FOUND Lnet/minecraft/entity/player/PlayerInventory;NOT_FOUND:I
      intermediary field_30640 Lnet/minecraft/class_1661;field_30640:I
      official h Lcus;h:I
    • EQUIPMENT_SLOTS

      public static final Int2ObjectMap<EquipmentSlot> EQUIPMENT_SLOTS
      Mappings:
      Namespace Name Mixin selector
      named EQUIPMENT_SLOTS Lnet/minecraft/entity/player/PlayerInventory;EQUIPMENT_SLOTS:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
      intermediary field_56551 Lnet/minecraft/class_1661;field_56551:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
      official i Lcus;i:Lit/unimi/dsi/fastutil/ints/Int2ObjectMap;
    • main

      private final DefaultedList<ItemStack> main
      Mappings:
      Namespace Name Mixin selector
      named main Lnet/minecraft/entity/player/PlayerInventory;main:Lnet/minecraft/util/collection/DefaultedList;
      intermediary field_7547 Lnet/minecraft/class_1661;field_7547:Lnet/minecraft/class_2371;
      official k Lcus;k:Lju;
    • selectedSlot

      private int selectedSlot
      Mappings:
      Namespace Name Mixin selector
      named selectedSlot Lnet/minecraft/entity/player/PlayerInventory;selectedSlot:I
      intermediary field_7545 Lnet/minecraft/class_1661;field_7545:I
      official l Lcus;l:I
    • player

      public final PlayerEntity player
      Mappings:
      Namespace Name Mixin selector
      named player Lnet/minecraft/entity/player/PlayerInventory;player:Lnet/minecraft/entity/player/PlayerEntity;
      intermediary field_7546 Lnet/minecraft/class_1661;field_7546:Lnet/minecraft/class_1657;
      official j Lcus;j:Lcut;
    • equipment

      private final EntityEquipment equipment
      Mappings:
      Namespace Name Mixin selector
      named equipment Lnet/minecraft/entity/player/PlayerInventory;equipment:Lnet/minecraft/entity/EntityEquipment;
      intermediary field_56552 Lnet/minecraft/class_1661;field_56552:Lnet/minecraft/class_10630;
      official m Lcus;m:Lbzq;
    • changeCount

      private int changeCount
      Mappings:
      Namespace Name Mixin selector
      named changeCount Lnet/minecraft/entity/player/PlayerInventory;changeCount:I
      intermediary field_7542 Lnet/minecraft/class_1661;field_7542:I
      official n Lcus;n:I
  • Constructor Details

    • PlayerInventory

      public PlayerInventory(PlayerEntity player, EntityEquipment equipment)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/entity/player/PlayerInventory;<init>(Lnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/entity/EntityEquipment;)V
      intermediary <init> Lnet/minecraft/class_1661;<init>(Lnet/minecraft/class_1657;Lnet/minecraft/class_10630;)V
      official <init> Lcus;<init>(Lcut;Lbzq;)V
  • Method Details

    • getSelectedSlot

      public int getSelectedSlot()
      Mappings:
      Namespace Name Mixin selector
      named getSelectedSlot Lnet/minecraft/entity/player/PlayerInventory;getSelectedSlot()I
      intermediary method_67532 Lnet/minecraft/class_1661;method_67532()I
      official f Lcus;f()I
    • setSelectedSlot

      public void setSelectedSlot(int slot)
      Mappings:
      Namespace Name Mixin selector
      named setSelectedSlot Lnet/minecraft/entity/player/PlayerInventory;setSelectedSlot(I)V
      intermediary method_61496 Lnet/minecraft/class_1661;method_61496(I)V
      official c Lcus;c(I)V
    • getSelectedStack

      public ItemStack getSelectedStack()
      Mappings:
      Namespace Name Mixin selector
      named getSelectedStack Lnet/minecraft/entity/player/PlayerInventory;getSelectedStack()Lnet/minecraft/item/ItemStack;
      intermediary method_7391 Lnet/minecraft/class_1661;method_7391()Lnet/minecraft/class_1799;
      official g Lcus;g()Ldcv;
    • setSelectedStack

      public ItemStack setSelectedStack(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      named setSelectedStack Lnet/minecraft/entity/player/PlayerInventory;setSelectedStack(Lnet/minecraft/item/ItemStack;)Lnet/minecraft/item/ItemStack;
      intermediary method_67531 Lnet/minecraft/class_1661;method_67531(Lnet/minecraft/class_1799;)Lnet/minecraft/class_1799;
      official b Lcus;b(Ldcv;)Ldcv;
    • getHotbarSize

      public static int getHotbarSize()
      Mappings:
      Namespace Name Mixin selector
      named getHotbarSize Lnet/minecraft/entity/player/PlayerInventory;getHotbarSize()I
      intermediary method_7368 Lnet/minecraft/class_1661;method_7368()I
      official h Lcus;h()I
    • getMainStacks

      public DefaultedList<ItemStack> getMainStacks()
      Mappings:
      Namespace Name Mixin selector
      named getMainStacks Lnet/minecraft/entity/player/PlayerInventory;getMainStacks()Lnet/minecraft/util/collection/DefaultedList;
      intermediary method_67533 Lnet/minecraft/class_1661;method_67533()Lnet/minecraft/class_2371;
      official i Lcus;i()Lju;
    • canStackAddMore

      private boolean canStackAddMore(ItemStack existingStack, ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      named canStackAddMore Lnet/minecraft/entity/player/PlayerInventory;canStackAddMore(Lnet/minecraft/item/ItemStack;Lnet/minecraft/item/ItemStack;)Z
      intermediary method_7393 Lnet/minecraft/class_1661;method_7393(Lnet/minecraft/class_1799;Lnet/minecraft/class_1799;)Z
      official a Lcus;a(Ldcv;Ldcv;)Z
    • getEmptySlot

      public int getEmptySlot()
      Mappings:
      Namespace Name Mixin selector
      named getEmptySlot Lnet/minecraft/entity/player/PlayerInventory;getEmptySlot()I
      intermediary method_7376 Lnet/minecraft/class_1661;method_7376()I
      official j Lcus;j()I
    • swapStackWithHotbar

      public void swapStackWithHotbar(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      named swapStackWithHotbar Lnet/minecraft/entity/player/PlayerInventory;swapStackWithHotbar(Lnet/minecraft/item/ItemStack;)V
      intermediary method_65126 Lnet/minecraft/class_1661;method_65126(Lnet/minecraft/class_1799;)V
      official c Lcus;c(Ldcv;)V
    • swapSlotWithHotbar

      public void swapSlotWithHotbar(int slot)
      Mappings:
      Namespace Name Mixin selector
      named swapSlotWithHotbar Lnet/minecraft/entity/player/PlayerInventory;swapSlotWithHotbar(I)V
      intermediary method_7365 Lnet/minecraft/class_1661;method_7365(I)V
      official d Lcus;d(I)V
    • isValidHotbarIndex

      public static boolean isValidHotbarIndex(int slot)
      Mappings:
      Namespace Name Mixin selector
      named isValidHotbarIndex Lnet/minecraft/entity/player/PlayerInventory;isValidHotbarIndex(I)Z
      intermediary method_7380 Lnet/minecraft/class_1661;method_7380(I)Z
      official e Lcus;e(I)Z
    • getSlotWithStack

      public int getSlotWithStack(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      named getSlotWithStack Lnet/minecraft/entity/player/PlayerInventory;getSlotWithStack(Lnet/minecraft/item/ItemStack;)I
      intermediary method_7395 Lnet/minecraft/class_1661;method_7395(Lnet/minecraft/class_1799;)I
      official d Lcus;d(Ldcv;)I
    • usableWhenFillingSlot

      public static boolean usableWhenFillingSlot(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      named usableWhenFillingSlot Lnet/minecraft/entity/player/PlayerInventory;usableWhenFillingSlot(Lnet/minecraft/item/ItemStack;)Z
      intermediary method_61495 Lnet/minecraft/class_1661;method_61495(Lnet/minecraft/class_1799;)Z
      official e Lcus;e(Ldcv;)Z
    • getMatchingSlot

      public int getMatchingSlot(RegistryEntry<Item> item, ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      named getMatchingSlot Lnet/minecraft/entity/player/PlayerInventory;getMatchingSlot(Lnet/minecraft/registry/entry/RegistryEntry;Lnet/minecraft/item/ItemStack;)I
      intermediary method_61494 Lnet/minecraft/class_1661;method_61494(Lnet/minecraft/class_6880;Lnet/minecraft/class_1799;)I
      official a Lcus;a(Ljl;Ldcv;)I
    • getSwappableHotbarSlot

      public int getSwappableHotbarSlot()
      Mappings:
      Namespace Name Mixin selector
      named getSwappableHotbarSlot Lnet/minecraft/entity/player/PlayerInventory;getSwappableHotbarSlot()I
      intermediary method_7386 Lnet/minecraft/class_1661;method_7386()I
      official k Lcus;k()I
    • remove

      public int remove(Predicate<ItemStack> shouldRemove, int maxCount, Inventory craftingInventory)
      Mappings:
      Namespace Name Mixin selector
      named remove Lnet/minecraft/entity/player/PlayerInventory;remove(Ljava/util/function/Predicate;ILnet/minecraft/inventory/Inventory;)I
      intermediary method_29280 Lnet/minecraft/class_1661;method_29280(Ljava/util/function/Predicate;ILnet/minecraft/class_1263;)I
      official a Lcus;a(Ljava/util/function/Predicate;ILbxc;)I
    • addStack

      private int addStack(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      named addStack Lnet/minecraft/entity/player/PlayerInventory;addStack(Lnet/minecraft/item/ItemStack;)I
      intermediary method_7366 Lnet/minecraft/class_1661;method_7366(Lnet/minecraft/class_1799;)I
      official k Lcus;k(Ldcv;)I
    • addStack

      private int addStack(int slot, ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      named addStack Lnet/minecraft/entity/player/PlayerInventory;addStack(ILnet/minecraft/item/ItemStack;)I
      intermediary method_7385 Lnet/minecraft/class_1661;method_7385(ILnet/minecraft/class_1799;)I
      official d Lcus;d(ILdcv;)I
    • getOccupiedSlotWithRoomForStack

      public int getOccupiedSlotWithRoomForStack(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      named getOccupiedSlotWithRoomForStack Lnet/minecraft/entity/player/PlayerInventory;getOccupiedSlotWithRoomForStack(Lnet/minecraft/item/ItemStack;)I
      intermediary method_7390 Lnet/minecraft/class_1661;method_7390(Lnet/minecraft/class_1799;)I
      official f Lcus;f(Ldcv;)I
    • updateItems

      public void updateItems()
      Mappings:
      Namespace Name Mixin selector
      named updateItems Lnet/minecraft/entity/player/PlayerInventory;updateItems()V
      intermediary method_7381 Lnet/minecraft/class_1661;method_7381()V
      official l Lcus;l()V
    • insertStack

      public boolean insertStack(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      named insertStack Lnet/minecraft/entity/player/PlayerInventory;insertStack(Lnet/minecraft/item/ItemStack;)Z
      intermediary method_7394 Lnet/minecraft/class_1661;method_7394(Lnet/minecraft/class_1799;)Z
      official g Lcus;g(Ldcv;)Z
    • insertStack

      public boolean insertStack(int slot, ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      named insertStack Lnet/minecraft/entity/player/PlayerInventory;insertStack(ILnet/minecraft/item/ItemStack;)Z
      intermediary method_7367 Lnet/minecraft/class_1661;method_7367(ILnet/minecraft/class_1799;)Z
      official c Lcus;c(ILdcv;)Z
    • offerOrDrop

      public void offerOrDrop(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      named offerOrDrop Lnet/minecraft/entity/player/PlayerInventory;offerOrDrop(Lnet/minecraft/item/ItemStack;)V
      intermediary method_7398 Lnet/minecraft/class_1661;method_7398(Lnet/minecraft/class_1799;)V
      official h Lcus;h(Ldcv;)V
    • offer

      public void offer(ItemStack stack, boolean notifiesClient)
      Mappings:
      Namespace Name Mixin selector
      named offer Lnet/minecraft/entity/player/PlayerInventory;offer(Lnet/minecraft/item/ItemStack;Z)V
      intermediary method_32338 Lnet/minecraft/class_1661;method_32338(Lnet/minecraft/class_1799;Z)V
      official a Lcus;a(Ldcv;Z)V
    • createSlotSetPacket

      public SetPlayerInventoryS2CPacket createSlotSetPacket(int slot)
      Mappings:
      Namespace Name Mixin selector
      named createSlotSetPacket Lnet/minecraft/entity/player/PlayerInventory;createSlotSetPacket(I)Lnet/minecraft/network/packet/s2c/play/SetPlayerInventoryS2CPacket;
      intermediary method_61497 Lnet/minecraft/class_1661;method_61497(I)Lnet/minecraft/class_9835;
      official f Lcus;f(I)Lagi;
    • removeStack

      public ItemStack removeStack(int slot, int amount)
      Removes a specific number of items from slot.
      Specified by:
      removeStack in interface Inventory
      Returns:
      the removed items as a stack
      Mappings:
      Namespace Name Mixin selector
      named removeStack Lnet/minecraft/inventory/Inventory;removeStack(II)Lnet/minecraft/item/ItemStack;
      intermediary method_5434 Lnet/minecraft/class_1263;method_5434(II)Lnet/minecraft/class_1799;
      official a Lbxc;a(II)Ldcv;
    • removeOne

      public void removeOne(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      named removeOne Lnet/minecraft/entity/player/PlayerInventory;removeOne(Lnet/minecraft/item/ItemStack;)V
      intermediary method_7378 Lnet/minecraft/class_1661;method_7378(Lnet/minecraft/class_1799;)V
      official i Lcus;i(Ldcv;)V
    • removeStack

      public ItemStack removeStack(int slot)
      Removes the stack currently stored at slot.
      Specified by:
      removeStack in interface Inventory
      Returns:
      the stack previously stored at the indicated slot
      Mappings:
      Namespace Name Mixin selector
      named removeStack Lnet/minecraft/inventory/Inventory;removeStack(I)Lnet/minecraft/item/ItemStack;
      intermediary method_5441 Lnet/minecraft/class_1263;method_5441(I)Lnet/minecraft/class_1799;
      official b Lbxc;b(I)Ldcv;
    • setStack

      public void setStack(int slot, ItemStack stack)
      Sets the stack stored at slot to stack.
      Specified by:
      setStack in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      named setStack Lnet/minecraft/inventory/Inventory;setStack(ILnet/minecraft/item/ItemStack;)V
      intermediary method_5447 Lnet/minecraft/class_1263;method_5447(ILnet/minecraft/class_1799;)V
      official a Lbxc;a(ILdcv;)V
    • writeData

      public void writeData(WriteView.ListAppender<StackWithSlot> list)
      Mappings:
      Namespace Name Mixin selector
      named writeData Lnet/minecraft/entity/player/PlayerInventory;writeData(Lnet/minecraft/storage/WriteView$ListAppender;)V
      intermediary method_7384 Lnet/minecraft/class_1661;method_7384(Lnet/minecraft/class_11372$class_11373;)V
      official a Lcus;a(Lfdc$a;)V
    • readData

      public void readData(ReadView.TypedListReadView<StackWithSlot> list)
      Mappings:
      Namespace Name Mixin selector
      named readData Lnet/minecraft/entity/player/PlayerInventory;readData(Lnet/minecraft/storage/ReadView$TypedListReadView;)V
      intermediary method_7397 Lnet/minecraft/class_1661;method_7397(Lnet/minecraft/class_11368$class_11369;)V
      official a Lcus;a(Lfda$a;)V
    • size

      public int size()
      Returns the size of the inventory.

      The inventory should support the slot ID from 0 to size() - 1. This should remain constant throughout the inventory's lifetime.

      Specified by:
      size in interface Inventory
      Returns:
      the size of the inventory
      Mappings:
      Namespace Name Mixin selector
      named size Lnet/minecraft/inventory/Inventory;size()I
      intermediary method_5439 Lnet/minecraft/class_1263;method_5439()I
      official b Lbxc;b()I
    • isEmpty

      public boolean isEmpty()
      Returns whether the inventory consists entirely of empty item stacks.
      Specified by:
      isEmpty in interface Inventory
      Returns:
      whether the inventory consists entirely of empty item stacks
      Mappings:
      Namespace Name Mixin selector
      named isEmpty Lnet/minecraft/inventory/Inventory;isEmpty()Z
      intermediary method_5442 Lnet/minecraft/class_1263;method_5442()Z
      official c Lbxc;c()Z
    • getStack

      public ItemStack getStack(int slot)
      Returns the stack currently stored at slot.

      If the slot is empty, or is outside the bounds of this inventory, this returns ItemStack.EMPTY.

      Specified by:
      getStack in interface Inventory
      Returns:
      the stack currently stored at slot
      Mappings:
      Namespace Name Mixin selector
      named getStack Lnet/minecraft/inventory/Inventory;getStack(I)Lnet/minecraft/item/ItemStack;
      intermediary method_5438 Lnet/minecraft/class_1263;method_5438(I)Lnet/minecraft/class_1799;
      official a Lbxc;a(I)Ldcv;
    • getName

      public Text getName()
      Returns the name of this object.

      This should return the custom name if it exists, otherwise the default name. This should not have styling applied.

      Specified by:
      getName in interface Nameable
      Returns:
      the name of this object
      Mappings:
      Namespace Name Mixin selector
      named getName Lnet/minecraft/util/Nameable;getName()Lnet/minecraft/text/Text;
      intermediary method_5477 Lnet/minecraft/class_1275;method_5477()Lnet/minecraft/class_2561;
      official aj Lbxn;aj()Lxo;
    • dropAll

      public void dropAll()
      Mappings:
      Namespace Name Mixin selector
      named dropAll Lnet/minecraft/entity/player/PlayerInventory;dropAll()V
      intermediary method_7388 Lnet/minecraft/class_1661;method_7388()V
      official m Lcus;m()V
    • markDirty

      public void markDirty()
      Marks the inventory as modified. Implementations should call this method every time the inventory is changed in any way.
      Specified by:
      markDirty in interface Inventory
      See Also:
      API Note:
      Implementations should mark the inventory for synchronization or saving in this method. Since this is called frequently, it is not recommended to synchronize or save the inventory directly in this method. If this inventory is implemented in a block entity, then it should always call super.markDirty(); to ensure the block entity gets saved.
      Mappings:
      Namespace Name Mixin selector
      named markDirty Lnet/minecraft/inventory/Inventory;markDirty()V
      intermediary method_5431 Lnet/minecraft/class_1263;method_5431()V
      official e Lbxc;e()V
    • getChangeCount

      public int getChangeCount()
      Mappings:
      Namespace Name Mixin selector
      named getChangeCount Lnet/minecraft/entity/player/PlayerInventory;getChangeCount()I
      intermediary method_7364 Lnet/minecraft/class_1661;method_7364()I
      official n Lcus;n()I
    • canPlayerUse

      public boolean canPlayerUse(PlayerEntity player)
      Specified by:
      canPlayerUse in interface Inventory
      Returns:
      whether player can use this inventory
      See Also:
      API Note:
      Implementations should check the distance between the inventory holder and player. For convenience, this interface offers two methods used by block entities to implement this check.
      Mappings:
      Namespace Name Mixin selector
      named canPlayerUse Lnet/minecraft/inventory/Inventory;canPlayerUse(Lnet/minecraft/entity/player/PlayerEntity;)Z
      intermediary method_5443 Lnet/minecraft/class_1263;method_5443(Lnet/minecraft/class_1657;)Z
      official a Lbxc;a(Lcut;)Z
    • contains

      public boolean contains(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      named contains Lnet/minecraft/entity/player/PlayerInventory;contains(Lnet/minecraft/item/ItemStack;)Z
      intermediary method_7379 Lnet/minecraft/class_1661;method_7379(Lnet/minecraft/class_1799;)Z
      official j Lcus;j(Ldcv;)Z
    • contains

      public boolean contains(TagKey<Item> tag)
      Mappings:
      Namespace Name Mixin selector
      named contains Lnet/minecraft/entity/player/PlayerInventory;contains(Lnet/minecraft/registry/tag/TagKey;)Z
      intermediary method_7382 Lnet/minecraft/class_1661;method_7382(Lnet/minecraft/class_6862;)Z
      official a Lcus;a(Lbae;)Z
    • contains

      public boolean contains(Predicate<ItemStack> predicate)
      Mappings:
      Namespace Name Mixin selector
      named contains Lnet/minecraft/entity/player/PlayerInventory;contains(Ljava/util/function/Predicate;)Z
      intermediary method_55753 Lnet/minecraft/class_1661;method_55753(Ljava/util/function/Predicate;)Z
      official b Lcus;b(Ljava/util/function/Predicate;)Z
    • clone

      public void clone(PlayerInventory other)
      Mappings:
      Namespace Name Mixin selector
      named clone Lnet/minecraft/entity/player/PlayerInventory;clone(Lnet/minecraft/entity/player/PlayerInventory;)V
      intermediary method_7377 Lnet/minecraft/class_1661;method_7377(Lnet/minecraft/class_1661;)V
      official a Lcus;a(Lcus;)V
    • clear

      public void clear()
      Specified by:
      clear in interface Clearable
      Mappings:
      Namespace Name Mixin selector
      named clear Lnet/minecraft/util/Clearable;clear()V
      intermediary method_5448 Lnet/minecraft/class_3829;method_5448()V
      official a Lbxa;a()V
    • populateRecipeFinder

      public void populateRecipeFinder(RecipeFinder finder)
      Mappings:
      Namespace Name Mixin selector
      named populateRecipeFinder Lnet/minecraft/entity/player/PlayerInventory;populateRecipeFinder(Lnet/minecraft/recipe/RecipeFinder;)V
      intermediary method_7387 Lnet/minecraft/class_1661;method_7387(Lnet/minecraft/class_9875;)V
      official a Lcus;a(Lcuz;)V
    • dropSelectedItem

      public ItemStack dropSelectedItem(boolean entireStack)
      Mappings:
      Namespace Name Mixin selector
      named dropSelectedItem Lnet/minecraft/entity/player/PlayerInventory;dropSelectedItem(Z)Lnet/minecraft/item/ItemStack;
      intermediary method_37417 Lnet/minecraft/class_1661;method_37417(Z)Lnet/minecraft/class_1799;
      official a Lcus;a(Z)Ldcv;