Class CraftingInventory

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

public class CraftingInventory
extends Object
implements Inventory
Mappings:
Namespace Name
official xp
intermediary net/minecraft/class_1993
named net/minecraft/inventory/CraftingInventory
  • Field Details

    • field_8470

      private final ItemStack[] field_8470
      Mappings:
      Namespace Name Mixin selector
      official a Lxp;a:[Lzx;
      intermediary field_8470 Lnet/minecraft/class_1993;field_8470:[Lnet/minecraft/class_2056;
      named field_8470 Lnet/minecraft/inventory/CraftingInventory;field_8470:[Lnet/minecraft/item/ItemStack;
    • width

      private final int width
      Mappings:
      Namespace Name Mixin selector
      official b Lxp;b:I
      intermediary field_8471 Lnet/minecraft/class_1993;field_8471:I
      named width Lnet/minecraft/inventory/CraftingInventory;width:I
    • height

      private final int height
      Mappings:
      Namespace Name Mixin selector
      official c Lxp;c:I
      intermediary field_8472 Lnet/minecraft/class_1993;field_8472:I
      named height Lnet/minecraft/inventory/CraftingInventory;height:I
    • field_8473

      private final ScreenHandler field_8473
      Mappings:
      Namespace Name Mixin selector
      official d Lxp;d:Lxi;
      intermediary field_8473 Lnet/minecraft/class_1993;field_8473:Lnet/minecraft/class_1983;
      named field_8473 Lnet/minecraft/inventory/CraftingInventory;field_8473: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 o_ Log;o_()I
      intermediary method_6748 Lnet/minecraft/class_1718;method_6748()I
      named getInvSize Lnet/minecraft/inventory/Inventory;getInvSize()I
    • getInvStack

      public ItemStack getInvStack​(int slot)
      Specified by:
      getInvStack in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official a Log;a(I)Lzx;
      intermediary method_6736 Lnet/minecraft/class_1718;method_6736(I)Lnet/minecraft/class_2056;
      named getInvStack Lnet/minecraft/inventory/Inventory;getInvStack(I)Lnet/minecraft/item/ItemStack;
    • method_8136

      public ItemStack method_8136​(int int2, int int3)
      Mappings:
      Namespace Name Mixin selector
      official c Lxp;c(II)Lzx;
      intermediary method_8136 Lnet/minecraft/class_1993;method_8136(II)Lnet/minecraft/class_2056;
      named method_8136 Lnet/minecraft/inventory/CraftingInventory;method_8136(II)Lnet/minecraft/item/ItemStack;
    • getTranslationKey

      public String getTranslationKey()
      Specified by:
      getTranslationKey in interface Nameable
      Mappings:
      Namespace Name Mixin selector
      official e_ Lop;e_()Ljava/lang/String;
      intermediary method_6261 Lnet/minecraft/class_1726;method_6261()Ljava/lang/String;
      named getTranslationKey Lnet/minecraft/text/Nameable;getTranslationKey()Ljava/lang/String;
    • hasCustomName

      public boolean hasCustomName()
      Specified by:
      hasCustomName in interface Nameable
      Mappings:
      Namespace Name Mixin selector
      official l_ Lop;l_()Z
      intermediary method_6770 Lnet/minecraft/class_1726;method_6770()Z
      named hasCustomName Lnet/minecraft/text/Nameable;hasCustomName()Z
    • getName

      public Text getName()
      Specified by:
      getName in interface Nameable
      Mappings:
      Namespace Name Mixin selector
      official f_ Lop;f_()Leu;
      intermediary method_133 Lnet/minecraft/class_1726;method_133()Lnet/minecraft/class_1444;
      named getName Lnet/minecraft/text/Nameable;getName()Lnet/minecraft/text/Text;
    • removeInvStack

      public ItemStack removeInvStack​(int slot)
      Specified by:
      removeInvStack in interface Inventory
      Mappings:
      Namespace Name Mixin selector
      official b Log;b(I)Lzx;
      intermediary method_6741 Lnet/minecraft/class_1718;method_6741(I)Lnet/minecraft/class_2056;
      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 Log;a(II)Lzx;
      intermediary method_6737 Lnet/minecraft/class_1718;method_6737(II)Lnet/minecraft/class_2056;
      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 Log;a(ILzx;)V
      intermediary method_6738 Lnet/minecraft/class_1718;method_6738(ILnet/minecraft/class_2056;)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 q_ Log;q_()I
      intermediary method_6749 Lnet/minecraft/class_1718;method_6749()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 p_ Log;p_()V
      intermediary method_1103 Lnet/minecraft/class_1718;method_1103()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 Log;a(Lwn;)Z
      intermediary method_6739 Lnet/minecraft/class_1718;method_6739(Lnet/minecraft/class_1963;)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 Log;b(Lwn;)V
      intermediary method_6744 Lnet/minecraft/class_1718;method_6744(Lnet/minecraft/class_1963;)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 Log;c(Lwn;)V
      intermediary method_6745 Lnet/minecraft/class_1718;method_6745(Lnet/minecraft/class_1963;)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 Log;b(ILzx;)Z
      intermediary method_6743 Lnet/minecraft/class_1718;method_6743(ILnet/minecraft/class_2056;)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 a_ Log;a_(I)I
      intermediary method_6740 Lnet/minecraft/class_1718;method_6740(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 Log;b(II)V
      intermediary method_6742 Lnet/minecraft/class_1718;method_6742(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 g Log;g()I
      intermediary method_6746 Lnet/minecraft/class_1718;method_6746()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 l Log;l()V
      intermediary method_6747 Lnet/minecraft/class_1718;method_6747()V
      named clear Lnet/minecraft/inventory/Inventory;clear()V
    • getHeight

      public int getHeight()
      Mappings:
      Namespace Name Mixin selector
      official h Lxp;h()I
      intermediary method_8137 Lnet/minecraft/class_1993;method_8137()I
      named getHeight Lnet/minecraft/inventory/CraftingInventory;getHeight()I
    • method_8138

      public int method_8138()
      Mappings:
      Namespace Name Mixin selector
      official i Lxp;i()I
      intermediary method_8138 Lnet/minecraft/class_1993;method_8138()I
      named method_8138 Lnet/minecraft/inventory/CraftingInventory;method_8138()I