Interface Inventory

All Superinterfaces:
Nameable
All Known Subinterfaces:
HopperProvider, LockableScreenHandlerFactory, SidedInventory
All Known Implementing Classes:
AnimalInventory, BeaconBlockEntity, BrewingStandBlockEntity, ChestBlockEntity, ChestMinecartEntity, class_2737, ClientNetworkSyncedInventory, CraftingInventory, CraftingResultInventory, DispenserBlockEntity, DoubleInventory, DropperBlockEntity, EnderChestInventory, FurnaceBlockEntity, HopperBlockEntity, HopperMinecartEntity, LockableContainerBlockEntity, PlayerInventory, ShulkerBoxBlockEntity, SimpleInventory, StorageMinecartEntity, TraderInventory

public interface Inventory extends Nameable
Mappings:
Namespace Name
official rc
intermediary net/minecraft/class_849
named net/minecraft/inventory/Inventory
  • Method Details

    • getInvSize

      int getInvSize()
      Mappings:
      Namespace Name Mixin selector
      official v_ Lrc;v_()I
      intermediary method_2388 Lnet/minecraft/class_849;method_2388()I
      named getInvSize Lnet/minecraft/inventory/Inventory;getInvSize()I
    • isEmpty

      boolean isEmpty()
      Mappings:
      Namespace Name Mixin selector
      official w_ Lrc;w_()Z
      intermediary method_13922 Lnet/minecraft/class_849;method_13922()Z
      named isEmpty Lnet/minecraft/inventory/Inventory;isEmpty()Z
    • getInvStack

      ItemStack getInvStack(int slot)
      Mappings:
      Namespace Name Mixin selector
      official a Lrc;a(I)Lafj;
      intermediary method_2381 Lnet/minecraft/class_849;method_2381(I)Lnet/minecraft/class_1071;
      named getInvStack Lnet/minecraft/inventory/Inventory;getInvStack(I)Lnet/minecraft/item/ItemStack;
    • takeInvStack

      ItemStack takeInvStack(int slot, int amount)
      Mappings:
      Namespace Name Mixin selector
      official a Lrc;a(II)Lafj;
      intermediary method_2382 Lnet/minecraft/class_849;method_2382(II)Lnet/minecraft/class_1071;
      named takeInvStack Lnet/minecraft/inventory/Inventory;takeInvStack(II)Lnet/minecraft/item/ItemStack;
    • removeInvStack

      ItemStack removeInvStack(int slot)
      Mappings:
      Namespace Name Mixin selector
      official b Lrc;b(I)Lafj;
      intermediary method_2386 Lnet/minecraft/class_849;method_2386(I)Lnet/minecraft/class_1071;
      named removeInvStack Lnet/minecraft/inventory/Inventory;removeInvStack(I)Lnet/minecraft/item/ItemStack;
    • setInvStack

      void setInvStack(int slot, ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official a Lrc;a(ILafj;)V
      intermediary method_2383 Lnet/minecraft/class_849;method_2383(ILnet/minecraft/class_1071;)V
      named setInvStack Lnet/minecraft/inventory/Inventory;setInvStack(ILnet/minecraft/item/ItemStack;)V
    • getInvMaxStackAmount

      int getInvMaxStackAmount()
      Mappings:
      Namespace Name Mixin selector
      official y_ Lrc;y_()I
      intermediary method_2389 Lnet/minecraft/class_849;method_2389()I
      named getInvMaxStackAmount Lnet/minecraft/inventory/Inventory;getInvMaxStackAmount()I
    • markDirty

      void markDirty()
      Mappings:
      Namespace Name Mixin selector
      official x_ Lrc;x_()V
      intermediary method_543 Lnet/minecraft/class_849;method_543()V
      named markDirty Lnet/minecraft/inventory/Inventory;markDirty()V
    • canPlayerUseInv

      boolean canPlayerUseInv(PlayerEntity player)
      Mappings:
      Namespace Name Mixin selector
      official a Lrc;a(Laay;)Z
      intermediary method_2384 Lnet/minecraft/class_849;method_2384(Lnet/minecraft/class_988;)Z
      named canPlayerUseInv Lnet/minecraft/inventory/Inventory;canPlayerUseInv(Lnet/minecraft/entity/player/PlayerEntity;)Z
    • onInvOpen

      void onInvOpen(PlayerEntity player)
      Mappings:
      Namespace Name Mixin selector
      official b Lrc;b(Laay;)V
      intermediary method_10894 Lnet/minecraft/class_849;method_10894(Lnet/minecraft/class_988;)V
      named onInvOpen Lnet/minecraft/inventory/Inventory;onInvOpen(Lnet/minecraft/entity/player/PlayerEntity;)V
    • onInvClose

      void onInvClose(PlayerEntity player)
      Mappings:
      Namespace Name Mixin selector
      official c Lrc;c(Laay;)V
      intermediary method_10895 Lnet/minecraft/class_849;method_10895(Lnet/minecraft/class_988;)V
      named onInvClose Lnet/minecraft/inventory/Inventory;onInvClose(Lnet/minecraft/entity/player/PlayerEntity;)V
    • isValidInvStack

      boolean isValidInvStack(int slot, ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official b Lrc;b(ILafj;)Z
      intermediary method_5338 Lnet/minecraft/class_849;method_5338(ILnet/minecraft/class_1071;)Z
      named isValidInvStack Lnet/minecraft/inventory/Inventory;isValidInvStack(ILnet/minecraft/item/ItemStack;)Z
    • getProperty

      int getProperty(int key)
      Mappings:
      Namespace Name Mixin selector
      official c_ Lrc;c_(I)I
      intermediary method_10892 Lnet/minecraft/class_849;method_10892(I)I
      named getProperty Lnet/minecraft/inventory/Inventory;getProperty(I)I
    • setProperty

      void setProperty(int id, int value)
      Mappings:
      Namespace Name Mixin selector
      official b Lrc;b(II)V
      intermediary method_10893 Lnet/minecraft/class_849;method_10893(II)V
      named setProperty Lnet/minecraft/inventory/Inventory;setProperty(II)V
    • getProperties

      int getProperties()
      Mappings:
      Namespace Name Mixin selector
      official h Lrc;h()I
      intermediary method_10896 Lnet/minecraft/class_849;method_10896()I
      named getProperties Lnet/minecraft/inventory/Inventory;getProperties()I
    • clear

      void clear()
      Mappings:
      Namespace Name Mixin selector
      official m Lrc;m()V
      intermediary method_10897 Lnet/minecraft/class_849;method_10897()V
      named clear Lnet/minecraft/inventory/Inventory;clear()V