Interface SingleStackInventory

All Superinterfaces:
Clearable, Inventory
All Known Implementing Classes:
JukeboxBlockEntity

public interface SingleStackInventory extends Inventory
Mappings:
Namespace Name
official efn
intermediary net/minecraft/class_8181
named net/minecraft/inventory/SingleStackInventory
  • Method Details

    • size

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

      default boolean isEmpty()
      Specified by:
      isEmpty in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official ab_ Lbdq;ab_()Z
      intermediary method_5442 Lnet/minecraft/class_1263;method_5442()Z
      named isEmpty Lnet/minecraft/inventory/Inventory;isEmpty()Z
    • clear

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

      default ItemStack getStack()
      Mappings:
      Namespace Name Mixin selector
      official ar_ Lefn;ar_()Lcfz;
      intermediary method_49274 Lnet/minecraft/class_8181;method_49274()Lnet/minecraft/class_1799;
      named getStack Lnet/minecraft/inventory/SingleStackInventory;getStack()Lnet/minecraft/item/ItemStack;
    • removeStack

      default ItemStack removeStack()
      Mappings:
      Namespace Name Mixin selector
      official j Lefn;j()Lcfz;
      intermediary method_49276 Lnet/minecraft/class_8181;method_49276()Lnet/minecraft/class_1799;
      named removeStack Lnet/minecraft/inventory/SingleStackInventory;removeStack()Lnet/minecraft/item/ItemStack;
    • setStack

      default void setStack(ItemStack stack)
      Mappings:
      Namespace Name Mixin selector
      official b Lefn;b(Lcfz;)V
      intermediary method_49275 Lnet/minecraft/class_8181;method_49275(Lnet/minecraft/class_1799;)V
      named setStack Lnet/minecraft/inventory/SingleStackInventory;setStack(Lnet/minecraft/item/ItemStack;)V
    • removeStack

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