Class CraftingInventory

java.lang.Object
net.minecraft.inventory.CraftingInventory
All Implemented Interfaces:
class_3538, Inventory, Nameable

public class CraftingInventory extends Object implements Inventory, class_3538
Mappings:
Namespace Name
official aqc
intermediary net/minecraft/class_1011
named net/minecraft/inventory/CraftingInventory
  • Field Details

    • field_15100

      private final DefaultedList<ItemStack> field_15100
      Mappings:
      Namespace Name Mixin selector
      official a Laqc;a:Lez;
      intermediary field_15100 Lnet/minecraft/class_1011;field_15100:Lnet/minecraft/class_3114;
      named field_15100 Lnet/minecraft/inventory/CraftingInventory;field_15100:Lnet/minecraft/util/collection/DefaultedList;
    • width

      private final int width
      Mappings:
      Namespace Name Mixin selector
      official b Laqc;b:I
      intermediary field_4104 Lnet/minecraft/class_1011;field_4104:I
      named width Lnet/minecraft/inventory/CraftingInventory;width:I
    • height

      private final int height
      Mappings:
      Namespace Name Mixin selector
      official c Laqc;c:I
      intermediary field_12142 Lnet/minecraft/class_1011;field_12142:I
      named height Lnet/minecraft/inventory/CraftingInventory;height:I
    • field_4105

      private final ScreenHandler field_4105
      Mappings:
      Namespace Name Mixin selector
      official d Laqc;d:Lapv;
      intermediary field_4105 Lnet/minecraft/class_1011;field_4105:Lnet/minecraft/class_1002;
      named field_4105 Lnet/minecraft/inventory/CraftingInventory;field_4105:Lnet/minecraft/screen/ScreenHandler;
  • Constructor Details

    • CraftingInventory

      public CraftingInventory(ScreenHandler screenHandler, int int2, int int3)
  • Method Details

    • getInvSize

      public int getInvSize()
      Specified by:
      getInvSize in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official T_ Lade;T_()I
      intermediary method_2388 Lnet/minecraft/class_849;method_2388()I
      named getInvSize Lnet/minecraft/inventory/Inventory;getInvSize()I
    • isEmpty

      public boolean isEmpty()
      Specified by:
      isEmpty in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official P_ Lade;P_()Z
      intermediary method_13922 Lnet/minecraft/class_849;method_13922()Z
      named isEmpty Lnet/minecraft/inventory/Inventory;isEmpty()Z
    • getInvStack

      public ItemStack getInvStack(int slot)
      Specified by:
      getInvStack in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official a Lade;a(I)Late;
      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;
    • method_15540

      public Text method_15540()
      Specified by:
      method_15540 in interface Nameable
      Mappings:
      Namespace Name Mixin selector
      official N_ Ladr;N_()Lij;
      intermediary method_15540 Lnet/minecraft/class_2611;method_15540()Lnet/minecraft/class_1982;
      named method_15540 Lnet/minecraft/text/Nameable;method_15540()Lnet/minecraft/text/Text;
    • hasCustomName

      public boolean hasCustomName()
      Specified by:
      hasCustomName in interface Nameable
      Mappings:
      Namespace Name Mixin selector
      official O_ Ladr;O_()Z
      intermediary method_5339 Lnet/minecraft/class_2611;method_5339()Z
      named hasCustomName Lnet/minecraft/text/Nameable;hasCustomName()Z
    • method_15541

      @Nullable public Text method_15541()
      Specified by:
      method_15541 in interface Nameable
      Mappings:
      Namespace Name Mixin selector
      official e Ladr;e()Lij;
      intermediary method_15541 Lnet/minecraft/class_2611;method_15541()Lnet/minecraft/class_1982;
      named method_15541 Lnet/minecraft/text/Nameable;method_15541()Lnet/minecraft/text/Text;
    • removeInvStack

      public ItemStack removeInvStack(int slot)
      Specified by:
      removeInvStack in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official b Lade;b(I)Late;
      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;
    • takeInvStack

      public ItemStack takeInvStack(int slot, int amount)
      Specified by:
      takeInvStack in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official a Lade;a(II)Late;
      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;
    • setInvStack

      public void setInvStack(int slot, ItemStack stack)
      Specified by:
      setInvStack in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official a Lade;a(ILate;)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

      public int getInvMaxStackAmount()
      Specified by:
      getInvMaxStackAmount in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official f Lade;f()I
      intermediary method_2389 Lnet/minecraft/class_849;method_2389()I
      named getInvMaxStackAmount Lnet/minecraft/inventory/Inventory;getInvMaxStackAmount()I
    • markDirty

      public void markDirty()
      Specified by:
      markDirty in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official g Lade;g()V
      intermediary method_543 Lnet/minecraft/class_849;method_543()V
      named markDirty Lnet/minecraft/inventory/Inventory;markDirty()V
    • canPlayerUseInv

      public boolean canPlayerUseInv(PlayerEntity player)
      Specified by:
      canPlayerUseInv in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official a Lade;a(Laog;)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

      public void onInvOpen(PlayerEntity player)
      Specified by:
      onInvOpen in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official b Lade;b(Laog;)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

      public void onInvClose(PlayerEntity player)
      Specified by:
      onInvClose in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official c Lade;c(Laog;)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

      public boolean isValidInvStack(int slot, ItemStack stack)
      Specified by:
      isValidInvStack in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official b Lade;b(ILate;)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

      public int getProperty(int key)
      Specified by:
      getProperty in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official c Lade;c(I)I
      intermediary method_10892 Lnet/minecraft/class_849;method_10892(I)I
      named getProperty Lnet/minecraft/inventory/Inventory;getProperty(I)I
    • setProperty

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

      public int getProperties()
      Specified by:
      getProperties in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official h Lade;h()I
      intermediary method_10896 Lnet/minecraft/class_849;method_10896()I
      named getProperties Lnet/minecraft/inventory/Inventory;getProperties()I
    • clear

      public void clear()
      Specified by:
      clear in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official m Lade;m()V
      intermediary method_10897 Lnet/minecraft/class_849;method_10897()V
      named clear Lnet/minecraft/inventory/Inventory;clear()V
    • getHeight

      public int getHeight()
      Specified by:
      getHeight in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official method_11259 Laqc;method_11259()I
      intermediary method_11259 Lnet/minecraft/class_1011;method_11259()I
      named getHeight Lnet/minecraft/inventory/CraftingInventory;getHeight()I
    • method_11260

      public int method_11260()
      Specified by:
      method_11260 in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official U_ Lade;U_()I
      intermediary method_11260 Lnet/minecraft/class_849;method_11260()I
      named method_11260 Lnet/minecraft/inventory/Inventory;method_11260()I
    • method_15987

      public void method_15987(class_3175 class_3175)
      Specified by:
      method_15987 in interface class_3538
      Mappings:
      Namespace Name Mixin selector
      official a Laqy;a(Laoi;)V
      intermediary method_15987 Lnet/minecraft/class_3538;method_15987(Lnet/minecraft/class_3175;)V
      named method_15987 Lnet/minecraft/class_3538;method_15987(Lnet/minecraft/class_3175;)V