Lots of stuff related to RecipeBook and RecipeBookGui (#289)

* Lots of stuff related to RecipeBook and RecipeBookGui

* RecipeDisplayListener

* RecipeResultCollection

* RecipeGridAligner

* idToAmountMap

* RecipeInputProvider

* Ingredient.NON_EMPTY
This commit is contained in:
David Vierra 2018-12-14 06:43:15 -10:00 committed by Modmuss50
parent 3d49f46517
commit 4cc228e366
57 changed files with 472 additions and 107 deletions

View File

@ -1,4 +0,0 @@
CLASS boc
METHOD a createContainer (Lara;Larb;)Lasw;
METHOD a canPlayerUseInv (Larb;)Z
METHOD m getContainerId ()Ljava/lang/String;

View File

@ -1,9 +0,0 @@
CLASS cqo
FIELD p u I
FIELD q v I
FIELD r hoverV I
METHOD a draw (IIF)V
ARG 1 mouseY
ARG 2 delta
METHOD b getPos (II)V
ARG 1 x

View File

@ -1,6 +0,0 @@
CLASS crb
METHOD a draw (IIF)V
ARG 1 mouseY
ARG 2 delta
METHOD b setPos (II)V
ARG 1 x

View File

@ -1,4 +0,0 @@
CLASS cvk
METHOD a draw (IIF)V
ARG 1 mouseY
ARG 2 delta

View File

@ -1,9 +0,0 @@
CLASS cwb
CLASS cwb$a
METHOD a draw (IIF)V
ARG 1 mouseY
ARG 2 delta
METHOD a mouseClicked (DDI)Z
ARG 1 mouseX
ARG 3 mouseY
ARG 5 button

View File

@ -1,6 +0,0 @@
CLASS cwe
FIELD u category Lcpn;
METHOD a draw (IIF)V
ARG 1 mouseY
ARG 2 delta
METHOD d getCategory ()Lcpn;

View File

@ -1,9 +0,0 @@
CLASS cwf
METHOD a mouseClicked (DDI)Z
ARG 1 mouseX
ARG 3 mouseY
ARG 5 button
METHOD a draw (IIF)V
ARG 1 mouseY
ARG 2 delta
METHOD b getWidth ()I

View File

@ -0,0 +1,44 @@
CLASS bni net/minecraft/block/entity/AbstractFurnaceBlockEntity
FIELD a inventory Lfh;
FIELD b customName Ljd;
FIELD i burnTime I
FIELD j fuelTime I
FIELD k cookTime I
FIELD l cookTimeTotal I
FIELD m recipesUsed Ljava/util/Map;
METHOD B isBurning ()Z
METHOD R_ getName ()Ljd;
METHOD U_ clearInv ()V
METHOD Z_ getInvSize ()I
METHOD a getInvStack (I)Lawo;
METHOD a takeInvStack (II)Lawo;
ARG 1 slot
METHOD a setInvStack (ILawo;)V
ARG 1 slot
METHOD a canInsertInvStack (ILawo;Ley;)Z
ARG 1 slot
ARG 2 stack
METHOD a canPlayerUseInv (Larb;)Z
METHOD a provideRecipeInputs (Lard;)V
METHOD a getItemBurnTime (Lawo;)I
METHOD a getInvAvailableSlots (Ley;)[I
METHOD a fromTag (Lhs;)V
METHOD a setCustomName (Ljd;)V
METHOD b removeInvStack (I)Lawo;
METHOD b setInvProperty (II)V
ARG 1 pos
METHOD b isValidInvStack (ILawo;)Z
ARG 1 slot
METHOD b canExtractInvStack (ILawo;Ley;)Z
ARG 1 slot
ARG 2 stack
METHOD b canUseAsFuel (Lawo;)Z
ARG 0 stack
METHOD b toTag (Lhs;)Lhs;
METHOD c isInvEmpty ()Z
METHOD c getInvProperty (I)I
METHOD e tick ()V
METHOD f getCustomName ()Ljd;
METHOD i getInvPropertyCount ()I
METHOD p getBurnTimeMap ()Ljava/util/Map;
METHOD q getCookTime ()I

View File

@ -2,4 +2,6 @@ CLASS bnp net/minecraft/block/entity/BlastFurnaceBlockEntity
METHOD a createContainer (Lara;Larb;)Lasw;
ARG 1 playerInv
METHOD a canPlayerUseInv (Larb;)Z
METHOD a getItemBurnTime (Lawo;)I
METHOD m getContainerId ()Ljava/lang/String;
METHOD q getCookTime ()I

View File

@ -1,40 +1,5 @@
CLASS bni net/minecraft/block/entity/FurnaceBlockEntity
FIELD a inventory Lfh;
FIELD b customName Ljd;
FIELD i burnTime I
FIELD j fuelTime I
FIELD k cookTime I
FIELD l cookTimeTotal I
FIELD m recipesUsed Ljava/util/Map;
METHOD B isBurning ()Z
METHOD R_ getName ()Ljd;
METHOD U_ clearInv ()V
METHOD Z_ getInvSize ()I
METHOD a getInvStack (I)Lawo;
METHOD a takeInvStack (II)Lawo;
ARG 1 slot
METHOD a setInvStack (ILawo;)V
ARG 1 slot
METHOD a canInsertInvStack (ILawo;Ley;)Z
ARG 1 slot
ARG 2 stack
CLASS boc net/minecraft/block/entity/FurnaceBlockEntity
METHOD a createContainer (Lara;Larb;)Lasw;
METHOD a canPlayerUseInv (Larb;)Z
METHOD a getInvAvailableSlots (Ley;)[I
METHOD a fromTag (Lhs;)V
METHOD a setCustomName (Ljd;)V
METHOD b removeInvStack (I)Lawo;
METHOD b setInvProperty (II)V
ARG 1 pos
METHOD b isValidInvStack (ILawo;)Z
ARG 1 slot
METHOD b canExtractInvStack (ILawo;Ley;)Z
ARG 1 slot
ARG 2 stack
METHOD b canUseAsFuel (Lawo;)Z
ARG 0 stack
METHOD b toTag (Lhs;)Lhs;
METHOD c isInvEmpty ()Z
METHOD c getInvProperty (I)I
METHOD e tick ()V
METHOD f getCustomName ()Ljd;
METHOD i getInvPropertyCount ()I
METHOD m getContainerId ()Ljava/lang/String;
METHOD q getCookTime ()I

View File

@ -2,4 +2,6 @@ CLASS boo net/minecraft/block/entity/SmokerBlockEntity
METHOD a createContainer (Lara;Larb;)Lasw;
ARG 1 playerInv
METHOD a canPlayerUseInv (Larb;)Z
METHOD a getItemBurnTime (Lawo;)I
METHOD m getContainerId ()Ljava/lang/String;
METHOD q getCookTime ()I

View File

@ -1,4 +1,4 @@
CLASS cuq
CLASS cuq net/minecraft/client/gui/WrittenBookGui
CLASS cuq$1
METHOD a onPressed (DD)V
ARG 1 mouseY

View File

@ -0,0 +1,6 @@
CLASS cvy net/minecraft/client/gui/container/AbstractFurnaceRecipeBookGui
METHOD a drawGhostSlots (IIZF)V
METHOD a showGhostRecipe (Layw;Ljava/util/List;)V
METHOD c isOpen ()Z
METHOD g getToggleCraftableButtonText ()Ljava/lang/String;
METHOD h getAllowedFuels ()Ljava/util/Set;

View File

@ -22,8 +22,9 @@ CLASS cun net/minecraft/client/gui/container/BeaconGui
FIELD q iconV I
FIELD r disabled Z
METHOD a draw (IIF)V
ARG 1 mouseY
ARG 2 delta
ARG 1 mouseX
ARG 2 mouseY
ARG 3 delta
METHOD c isDisabled ()Z
METHOD c setDisabled (Z)V
FIELD A canConsumeGem Z

View File

@ -0,0 +1,3 @@
CLASS cvz net/minecraft/client/gui/container/BlastFurnaceRecipeBookGui
METHOD g getToggleCraftableButtonText ()Ljava/lang/String;
METHOD h getAllowedFuels ()Ljava/util/Set;

View File

@ -2,7 +2,11 @@ CLASS cuu net/minecraft/client/gui/container/CraftingTableGui
CLASS cuu$1
METHOD a onPressed (DD)V
ARG 1 mouseY
FIELD A playerInventory Lara;
FIELD w BG_TEX Lqc;
FIELD x RECIPE_BUTTON_TEX Lqc;
FIELD y recipeBookGui Lcwc;
FIELD z isNarrow Z
METHOD <init> (Lara;Lbbp;)V
ARG 1 playerInv
METHOD <init> (Lara;Lbbp;Let;)V

View File

@ -0,0 +1,3 @@
CLASS cwj net/minecraft/client/gui/container/FurnaceRecipeBookGui
METHOD g getToggleCraftableButtonText ()Ljava/lang/String;
METHOD h getAllowedFuels ()Ljava/util/Set;

View File

@ -1,2 +0,0 @@
CLASS cvy net/minecraft/client/gui/container/RecipeBookFurnaceGui
METHOD c isOpen ()Z

View File

@ -1,8 +1,19 @@
CLASS cwc net/minecraft/client/gui/container/RecipeBookGui
FIELD a TEXTURE Lqc;
FIELD f ghostSlots Lcwa;
FIELD g toggleCraftableButton Lcrb;
FIELD h craftingContainer Latx;
FIELD i client Lcpk;
FIELD j recipeBook Lcpd;
FIELD k recipesArea Lcwd;
FIELD l recipeFinder Lard;
FIELD m leftOffset I
FIELD n parentWidth I
FIELD o parentHeight I
FIELD p tabButtons Ljava/util/List;
FIELD q currentTab Lcwe;
FIELD r searchField Lcqm;
FIELD s searchText Ljava/lang/String;
FIELD t cachedInvChangeCount I
METHOD a charTyped (CI)Z
ARG 1 chr
@ -11,15 +22,41 @@ CLASS cwc net/minecraft/client/gui/container/RecipeBookGui
ARG 1 mouseX
ARG 3 mouseY
ARG 5 button
METHOD a draw (IIF)V
ARG 1 mouseX
ARG 2 mouseY
ARG 3 delta
METHOD a keyPressed (III)Z
ARG 1 keyCode
ARG 2 scanCode
METHOD a (IILcpk;ZLatx;)V
ARG 1 parentWidth
ARG 2 parentHeight
ARG 3 client
ARG 4 isNarrow
ARG 5 craftingContainer
METHOD a drawGhostSlots (IIZF)V
METHOD a showGhostRecipe (Layw;Ljava/util/List;)V
METHOD a triggerPirateSpeakEasterEgg (Ljava/lang/String;)V
METHOD a acceptAlignedInput (Ljava/util/Iterator;IIII)V
ARG 1 inputs
ARG 2 slot
ARG 3 amount
ARG 4 gridX
ARG 5 gridY
METHOD a onRecipesDisplayed (Ljava/util/List;)V
METHOD a findLeftEdge (ZII)I
ARG 1 narrow
ARG 2 width
ARG 3 containerWidth
ARG 4 left
METHOD c isOpen ()Z
METHOD c keyReleased (III)Z
ARG 1 keyCode
ARG 2 scanCode
METHOD e (Z)V
ARG 1 isNarrow
ARG 2 left
ARG 3 top
METHOD i close ()V
METHOD k update ()V

View File

@ -0,0 +1,3 @@
CLASS cwk net/minecraft/client/gui/container/SmokerRecipeBookGui
METHOD g getToggleCraftableButtonText ()Ljava/lang/String;
METHOD h getAllowedFuels ()Ljava/util/Set;

View File

@ -12,8 +12,9 @@ CLASS cvi net/minecraft/client/gui/container/VillagerGui
ARG 2 y
ARG 3 next
METHOD a draw (IIF)V
ARG 1 mouseY
ARG 2 delta
ARG 1 mouseX
ARG 2 mouseY
ARG 3 delta
FIELD B villagerName Ljd;
FIELD w TEXTURE Lqc;
FIELD x villager Lbat;

View File

@ -3,7 +3,12 @@ CLASS cvf net/minecraft/client/gui/ingame/InventoryGui
METHOD a onPressed (DD)V
ARG 1 mouseY
FIELD A recipeBook Lcwc;
FIELD x TEXTURE Lqc;
FIELD B isOpen Z
FIELD C isNarrow Z
FIELD D isMouseDown Z
FIELD x RECIPE_BUTTON_TEX Lqc;
FIELD y mouseX F
FIELD z mouseY F
METHOD a mouseClicked (DDI)Z
ARG 1 mouseX
ARG 3 mouseY

View File

@ -11,7 +11,7 @@ CLASS ctt net/minecraft/client/gui/menu/settings/AudioSettingsGui
METHOD a drawBackground (Lcpk;II)V
ARG 1 client
ARG 2 mouseX
METHOD a onPressed (Ldqt;)V
METHOD a playPressedSound (Ldqt;)V
METHOD a getTextureId (Z)I
METHOD b onReleased (DD)V
ARG 1 mouseY

View File

@ -0,0 +1,11 @@
CLASS cvk net/minecraft/client/gui/widget/BookPageButtonWidget
FIELD o isNextPageButton Z
METHOD <init> (IIIZ)V
ARG 1 id
ARG 2 x
ARG 3 y
ARG 4 nextPage
METHOD a draw (IIF)V
ARG 1 mouseX
ARG 2 mouseY
ARG 3 delta

View File

@ -9,6 +9,7 @@ CLASS cqi net/minecraft/client/gui/widget/ButtonWidget
FIELD l enabled Z
FIELD m visible Z
FIELD n hovered Z
FIELD o pressed Z
METHOD <init> (IIIIILjava/lang/String;)V
ARG 1 id
ARG 2 x
@ -34,12 +35,13 @@ CLASS cqi net/minecraft/client/gui/widget/ButtonWidget
METHOD a onHover (II)V
ARG 1 mouseY
METHOD a draw (IIF)V
ARG 1 mouseY
ARG 2 delta
ARG 1 mouseX
ARG 2 mouseY
ARG 3 delta
METHOD a drawBackground (Lcpk;II)V
ARG 1 client
ARG 2 mouseX
METHOD a onPressed (Ldqt;)V
METHOD a playPressedSound (Ldqt;)V
METHOD a getTextureId (Z)I
METHOD b getWidth ()I
METHOD b onReleased (DD)V
@ -48,3 +50,4 @@ CLASS cqi net/minecraft/client/gui/widget/ButtonWidget
ARG 1 mouseX
ARG 3 mouseY
ARG 5 button
METHOD c hitTest (DD)Z

View File

@ -3,5 +3,6 @@ CLASS cqq net/minecraft/client/gui/widget/LanguageButtonWidget
ARG 1 id
ARG 2 x
METHOD a draw (IIF)V
ARG 1 mouseY
ARG 2 delta
ARG 1 mouseX
ARG 2 mouseY
ARG 3 delta

View File

@ -17,7 +17,8 @@ CLASS cqt net/minecraft/client/gui/widget/LockButtonWidget
ARG 1 id
ARG 2 x
METHOD a draw (IIF)V
ARG 1 mouseY
ARG 2 delta
ARG 1 mouseX
ARG 2 mouseY
ARG 3 delta
METHOD c isLocked ()Z
METHOD c setLocked (Z)V

View File

@ -0,0 +1,21 @@
CLASS cqo net/minecraft/client/gui/widget/RecipeBookButtonWidget
FIELD o texture Lqc;
FIELD p u I
FIELD q v I
FIELD r hoverVOffset I
METHOD <init> (IIIIIIIILqc;)V
ARG 2 x
ARG 3 y
ARG 4 width
ARG 5 height
ARG 6 u
ARG 7 v
ARG 8 hoverVOffset
ARG 9 texture
METHOD a draw (IIF)V
ARG 1 mouseX
ARG 2 mouseY
ARG 3 delta
METHOD b setPos (II)V
ARG 1 x
ARG 2 y

View File

@ -0,0 +1,23 @@
CLASS cwa net/minecraft/client/gui/widget/RecipeBookGhostSlots
CLASS cwa$a GhostInputSlot
FIELD b ingredient Layt;
FIELD c x I
FIELD d y I
METHOD <init> (Lcwa;Layt;II)V
ARG 3 x
ARG 4 y
METHOD a getX ()I
METHOD b getY ()I
METHOD c getCurrentItemStack ()Lawo;
FIELD a recipe Layw;
FIELD b slots Ljava/util/List;
FIELD c time F
METHOD a reset ()V
METHOD a getSlot (I)Lcwa$a;
METHOD a addSlot (Layt;II)V
ARG 2 x
ARG 3 y
METHOD a setRecipe (Layw;)V
METHOD a draw (Lcpk;IIZF)V
METHOD b getSlotCount ()I
METHOD c getRecipe ()Layw;

View File

@ -0,0 +1,29 @@
CLASS crb net/minecraft/client/gui/widget/ToggleButtonWidget
FIELD o texture Lqc;
FIELD p toggled Z
FIELD q u I
FIELD r v I
FIELD s pressedUOffset I
FIELD t hoverVOffset I
METHOD <init> (IIIIIZ)V
ARG 1 id
ARG 2 left
ARG 3 top
ARG 4 width
ARG 5 height
ARG 6 pressed
METHOD a draw (IIF)V
ARG 1 mouseX
ARG 2 mouseY
ARG 3 delta
METHOD a setTextureUV (IIIILqc;)V
ARG 1 u
ARG 2 v
ARG 3 pressedUOffset
ARG 4 hoverVOffset
ARG 5 texture
METHOD b setPos (II)V
ARG 1 x
ARG 2 y
METHOD c isToggled ()Z
METHOD c setToggled (Z)V

View File

@ -0,0 +1,21 @@
CLASS cwf net/minecraft/client/gui/widget/recipe/book/AnimatedResultButton
FIELD o BG_TEX Lqc;
FIELD p craftingContainer Latx;
FIELD q recipeBook Lxq;
FIELD r results Lcwg;
FIELD s time F
FIELD t bounce F
FIELD u currentResultIndex I
METHOD a mouseClicked (DDI)Z
ARG 1 mouseX
ARG 3 mouseY
ARG 5 button
METHOD a draw (IIF)V
ARG 1 mouseX
ARG 2 mouseY
ARG 3 delta
METHOD a showResultCollection (Lcwg;Lcwd;)V
METHOD b getWidth ()I
METHOD c getResultCollection ()Lcwg;
METHOD d hasResults ()Z
METHOD f getResults ()Ljava/util/List;

View File

@ -0,0 +1,13 @@
CLASS cwe net/minecraft/client/gui/widget/recipe/book/GroupButtonWidget
FIELD u category Lcpn;
FIELD v bounce F
METHOD <init> (ILcpn;)V
ARG 1 id
ARG 2 category
METHOD a draw (IIF)V
ARG 1 mouseX
ARG 2 mouseY
ARG 3 delta
METHOD a hasKnownRecipes (Lcpd;)Z
METHOD a refreshRecipes (Lcpk;)V
METHOD d getCategory ()Lcpn;

View File

@ -0,0 +1,57 @@
CLASS cwb net/minecraft/client/gui/widget/recipe/book/RecipeAlternatesWidget
CLASS cwb$a AlternateButtonWidget
CLASS cwb$a$a InputSlot
FIELD o slots Ljava/util/List;
FIELD q recipe Layw;
FIELD r isCraftable Z
METHOD <init> (Lcwb;IILayw;Z)V
ARG 2 x
ARG 3 y
ARG 4 recipe
ARG 5 isCraftable
METHOD a draw (IIF)V
ARG 1 mouseX
ARG 2 mouseY
ARG 3 delta
METHOD a alignRecipe (Layw;)V
METHOD a acceptAlignedInput (Ljava/util/Iterator;IIII)V
ARG 1 inputs
ARG 2 slot
ARG 3 amount
ARG 4 gridX
ARG 5 gridY
CLASS cwb$b
METHOD <init> (Lcwb;IILayw;Z)V
ARG 2 x
ARG 3 y
ARG 4 recipe
ARG 5 isCraftable
METHOD a alignRecipe (Layw;)V
FIELD a BG_TEX Lqc;
FIELD f alternateButtons Ljava/util/List;
FIELD g visible Z
FIELD h buttonX I
FIELD i buttonY I
FIELD j client Lcpk;
FIELD k resultCollection Lcwg;
FIELD l currentRecipe Layw;
FIELD m time F
FIELD n furnace Z
METHOD a getResults ()Lcwg;
METHOD a mouseClicked (DDI)Z
ARG 1 mouseX
ARG 3 mouseY
ARG 5 button
METHOD a draw (IIF)V
ARG 1 mouseX
ARG 2 mouseY
ARG 3 delta
METHOD a showAlternatesForResult (Lcpk;Lcwg;IIIIF)V
ARG 3 buttonX
ARG 4 buttonY
ARG 5 areaCenterX
ARG 6 areaCenterY
ARG 7 delta
METHOD a setVisible (Z)V
METHOD b getCurrentRecipe ()Layw;
METHOD c isVisible ()Z

View File

@ -28,6 +28,7 @@ CLASS ddl net/minecraft/client/network/ClientPlayerEntity
METHOD a openHorseInventory (Lana;Lafi;)V
METHOD a spawnEntityItem (Laoy;)Lawo;
METHOD a openBookEditor (Lawo;Lafo;)V
METHOD a onRecipeDisplayed (Layw;)V
METHOD a openVillagerGui (Lbat;)V
METHOD a openCommandBlockMinecart (Lbax;)V
METHOD a openCommandBlock (Lbnu;)V

View File

@ -1,2 +1,7 @@
CLASS cpd net/minecraft/client/recipe/book/ClientRecipeBook
FIELD k manager Layx;
FIELD l resultsByGroup Ljava/util/Map;
FIELD m orderedResults Ljava/util/List;
METHOD a getGroupsForContainer (Lasw;)Ljava/util/List;
METHOD b getResultsForGroup (Lcpn;)Lcwg;
METHOD i reload ()V

View File

@ -0,0 +1,32 @@
CLASS cwd net/minecraft/client/recipe/book/RecipeBookResultsArea
FIELD a resultButtons Ljava/util/List;
FIELD b hoveredResultButton Lcwf;
FIELD c alternatesWidget Lcwb;
FIELD d client Lcpk;
FIELD e recipeDisplayListeners Ljava/util/List;
FIELD f resultCollections Ljava/util/List;
FIELD g nextPageButton Lcrb;
FIELD h prevPageButton Lcrb;
FIELD i pageCount I
FIELD j currentPage I
FIELD k recipeBook Lxq;
FIELD m resultCollection Lcwg;
METHOD a mouseClicked (DDIIIII)Z
ARG 1 mouseX
ARG 3 mouseY
ARG 5 button
ARG 6 areaLeft
ARG 7 areaTop
ARG 8 areaWidth
ARG 9 areaHeight
METHOD a draw (IIIIF)V
ARG 1 left
ARG 2 top
ARG 3 mouseX
ARG 4 mouseY
ARG 5 delta
METHOD a setGui (Lcwc;)V
METHOD a onRecipesDisplayed (Ljava/util/List;)V
METHOD e getRecipeBook ()Lxq;
METHOD f refreshResultButtons ()V
METHOD g hideShowPageButtons ()V

View File

@ -0,0 +1,2 @@
CLASS cwh net/minecraft/client/recipe/book/RecipeDisplayListener
METHOD a onRecipesDisplayed (Ljava/util/List;)V

View File

@ -0,0 +1,22 @@
CLASS cwg net/minecraft/client/recipe/book/RecipeResultCollection
FIELD a allRecipes Ljava/util/List;
FIELD b craftableResults Ljava/util/Set;
FIELD c fittableResults Ljava/util/Set;
FIELD d allResults Ljava/util/Set;
METHOD a isInitialized ()Z
METHOD a computeCraftables (Lard;IILxq;)V
ARG 1 recipeFinder
ARG 2 gridWidth
ARG 3 gridHeight
ARG 4 recipeBook
METHOD a isCraftable (Layw;)Z
METHOD a initialize (Lxq;)V
ARG 1 recipeBook
METHOD a getResults (Z)Ljava/util/List;
ARG 1 craftableOnly
METHOD b hasCraftableResults ()Z
METHOD b addRecipe (Layw;)V
METHOD b getResultsExclusive (Z)Ljava/util/List;
ARG 1 isCraftable
METHOD c hasFittableResults ()Z
METHOD d getAllRecipes ()Ljava/util/List;

View File

@ -0,0 +1,9 @@
CLASS cnx net/minecraft/client/render/GuiLighting
FIELD a buffer Ljava/nio/FloatBuffer;
FIELD b towardLight Lcos;
FIELD c oppositeLight Lcos;
METHOD a disable ()V
METHOD a createNormalVector (FFF)Lcos;
METHOD a singletonBuffer (FFFF)Ljava/nio/FloatBuffer;
METHOD b enable ()V
METHOD c enableForItems ()V

View File

@ -1,4 +1,5 @@
CLASS asx net/minecraft/container/AbstractFurnaceContainer
FIELD a world Lbbp;
FIELD f inventory Lafi;
FIELD g cookTime I
FIELD h totalCookTime I
@ -7,15 +8,18 @@ CLASS asx net/minecraft/container/AbstractFurnaceContainer
METHOD <init> (Lara;Lafi;)V
ARG 1 playerInv
METHOD a canUse (Larb;)Z
METHOD a populateRecipeFinder (Lard;)V
METHOD a addListener (Latf;)V
ARG 1 listener
METHOD a isSmeltable (Lawo;)Z
METHOD a matches (Layw;)Z
METHOD b sendContentUpdates ()V
METHOD b setProperty (II)V
ARG 1 pos
METHOD b transferSlot (Larb;I)Lawo;
ARG 1 player
METHOD b isFuel (Lawo;)Z
METHOD d clearCraftingSlots ()V
METHOD e getCraftingResultSlotIndex ()I
METHOD f getCraftingWidth ()I
METHOD g getCrafitngHeight ()I
METHOD g getCraftingHeight ()I

View File

@ -1,3 +1,5 @@
CLASS atb net/minecraft/container/BlastFurnaceContainer
METHOD <init> (Lara;Lafi;)V
ARG 1 playerInv
METHOD a isSmeltable (Lawo;)Z
METHOD b isFuel (Lawo;)Z

View File

@ -1,6 +1,7 @@
CLASS atx net/minecraft/container/CraftingContainer
METHOD a populateRecipeFinder (Lard;)V
METHOD a matches (Layw;)Z
METHOD d clearCraftingSlots ()V
METHOD e getCraftingResultSlotIndex ()I
METHOD f getCraftingWidth ()I
METHOD g getCrafitngHeight ()I
METHOD g getCraftingHeight ()I

View File

@ -3,11 +3,13 @@ CLASS ath net/minecraft/container/CraftingTableContainer
FIELD f resultInv Latz;
FIELD g world Lbbp;
FIELD h pos Let;
FIELD i player Larb;
METHOD <init> (Lara;Lbbp;Let;)V
ARG 1 playerInv
ARG 2 world
METHOD a onContentChanged (Lafi;)V
METHOD a canUse (Larb;)Z
METHOD a populateRecipeFinder (Lard;)V
METHOD a matches (Layw;)Z
METHOD b close (Larb;)V
METHOD b transferSlot (Larb;I)Lawo;
@ -15,4 +17,4 @@ CLASS ath net/minecraft/container/CraftingTableContainer
METHOD d clearCraftingSlots ()V
METHOD e getCraftingResultSlotIndex ()I
METHOD f getCraftingWidth ()I
METHOD g getCrafitngHeight ()I
METHOD g getCraftingHeight ()I

View File

@ -1,3 +1,5 @@
CLASS atl net/minecraft/container/FurnaceContainer
METHOD <init> (Lara;Lafi;)V
ARG 1 playerInv
METHOD a isSmeltable (Lawo;)Z
METHOD b isFuel (Lawo;)Z

View File

@ -21,6 +21,7 @@ CLASS ats net/minecraft/container/LoomContainer
METHOD a onButtonClick (Larb;I)Z
ARG 1 player
ARG 2 id
METHOD a populateRecipeFinder (Lard;)V
METHOD a matches (Layw;)Z
METHOD b sendContentUpdates ()V
METHOD b setProperty (II)V
@ -31,4 +32,4 @@ CLASS ats net/minecraft/container/LoomContainer
METHOD d clearCraftingSlots ()V
METHOD e getCraftingResultSlotIndex ()I
METHOD f getCraftingWidth ()I
METHOD g getCrafitngHeight ()I
METHOD g getCraftingHeight ()I

View File

@ -16,6 +16,7 @@ CLASS atr net/minecraft/container/PlayerContainer
ARG 2 local
METHOD a onContentChanged (Lafi;)V
METHOD a canUse (Larb;)Z
METHOD a populateRecipeFinder (Lard;)V
METHOD a matches (Layw;)Z
METHOD b close (Larb;)V
METHOD b transferSlot (Larb;I)Lawo;
@ -23,4 +24,4 @@ CLASS atr net/minecraft/container/PlayerContainer
METHOD d clearCraftingSlots ()V
METHOD e getCraftingResultSlotIndex ()I
METHOD f getCraftingWidth ()I
METHOD g getCrafitngHeight ()I
METHOD g getCraftingHeight ()I

View File

@ -1,3 +1,5 @@
CLASS aue net/minecraft/container/SmokerContainer
METHOD <init> (Lara;Lafi;)V
ARG 1 playerInv
METHOD a isSmeltable (Lawo;)Z
METHOD b isFuel (Lawo;)Z

View File

@ -16,6 +16,7 @@ CLASS ara net/minecraft/entity/player/PlayerInventory
ARG 1 slot
METHOD a clone (Lara;)V
METHOD a canPlayerUseInv (Larb;)Z
METHOD a populateRecipeFinder (Lard;)V
METHOD a addPickBlock (Lawo;)V
METHOD a canStackAddMore (Lawo;Lawo;)Z
ARG 1 existingStack

View File

@ -14,6 +14,7 @@ CLASS afx net/minecraft/inventory/BasicInventory
ARG 1 slot
METHOD a addListener (Lafk;)V
METHOD a canPlayerUseInv (Larb;)Z
METHOD a provideRecipeInputs (Lard;)V
METHOD a setCustomName (Ljd;)V
METHOD b removeInvStack (I)Lawo;
METHOD b removeListener (Lafk;)V

View File

@ -15,6 +15,7 @@ CLASS atg net/minecraft/inventory/CraftingInventory
METHOD a setInvStack (ILawo;)V
ARG 1 slot
METHOD a canPlayerUseInv (Larb;)Z
METHOD a provideRecipeInputs (Lard;)V
METHOD ab_ getInvWidth ()I
METHOD b removeInvStack (I)Lawo;
METHOD c isInvEmpty ()Z

View File

@ -11,19 +11,26 @@ CLASS ayt net/minecraft/recipe/Ingredient
METHOD a getStacks ()Ljava/util/Collection;
METHOD b toJson ()Lcom/google/gson/JsonObject;
FIELD a EMPTY Layt;
FIELD b NON_EMPTY Ljava/util/function/Predicate;
FIELD c entries [Layt$c;
FIELD d stackArray [Lawo;
FIELD e ids Lit/unimi/dsi/fastutil/ints/IntList;
METHOD <init> (Ljava/util/stream/Stream;)V
ARG 1 entries
METHOD a getStackArray ()[Lawo;
METHOD a matches (Lawo;)Z
METHOD a fromJson (Lcom/google/gson/JsonElement;)Layt;
ARG 0 element
METHOD a entryFromJson (Lcom/google/gson/JsonObject;)Layt$c;
METHOD a write (Lit;)V
ARG 1 buf
METHOD a ofEntries (Ljava/util/stream/Stream;)Layt;
METHOD a fromTag (Lye;)Layt;
METHOD a ofStacks ([Lawo;)Layt;
METHOD a ofItems ([Lbbo;)Layt;
METHOD b getIds ()Lit/unimi/dsi/fastutil/ints/IntList;
METHOD b fromPacket (Lit;)Layt;
ARG 0 buf
METHOD c toJson ()Lcom/google/gson/JsonElement;
METHOD d isEmpty ()Z
METHOD f createStackArray ()V

View File

@ -0,0 +1,33 @@
CLASS ard net/minecraft/recipe/RecipeFinder
CLASS ard$a MatchableRecipe
METHOD a match (ILit/unimi/dsi/fastutil/ints/IntList;)Z
ARG 1 amount
ARG 2 outMatchingInputIds
METHOD b countCrafts (ILit/unimi/dsi/fastutil/ints/IntList;)I
ARG 1 limit
ARG 2 outMatchingInputIds
FIELD a idToAmountMap Lit/unimi/dsi/fastutil/ints/Int2IntMap;
METHOD a clear ()V
METHOD a contains (I)Z
METHOD a take (II)I
ARG 1 id
ARG 2 amount
METHOD a addNormalItem (Lawo;)V
ARG 1 stack
METHOD a countRecipeCrafts (Layw;ILit/unimi/dsi/fastutil/ints/IntList;)I
ARG 2 limit
ARG 3 outMatchingInputIds
METHOD a findRecipe (Layw;Lit/unimi/dsi/fastutil/ints/IntList;)Z
ARG 2 outMatchingInputIds
METHOD a findRecipe (Layw;Lit/unimi/dsi/fastutil/ints/IntList;I)Z
ARG 2 outMatchingInputIds
ARG 3 amount
METHOD b getStackFromId (I)Lawo;
METHOD b addItem (II)V
ARG 1 id
ARG 2 amount
METHOD b addItem (Lawo;)V
ARG 1 stack
METHOD b countRecipeCrafts (Layw;Lit/unimi/dsi/fastutil/ints/IntList;)I
ARG 2 outMatchingInputIds
METHOD c getItemId (Lawo;)I

View File

@ -0,0 +1,14 @@
CLASS py net/minecraft/recipe/RecipeGridAligner
METHOD a alignRecipeToGrid (IIILayw;Ljava/util/Iterator;I)V
ARG 1 gridWidth
ARG 2 gridHeight
ARG 3 gridOutputSlot
ARG 4 recipe
ARG 5 inputs
ARG 6 amount
METHOD a acceptAlignedInput (Ljava/util/Iterator;IIII)V
ARG 1 inputs
ARG 2 slot
ARG 3 amount
ARG 4 gridX
ARG 5 gridY

View File

@ -0,0 +1,2 @@
CLASS auf net/minecraft/recipe/RecipeInputProvider
METHOD a provideRecipeInputs (Lard;)V

View File

@ -7,11 +7,15 @@ CLASS xq net/minecraft/recipe/book/RecipeBook
FIELD f furnaceFilteringCraftable Z
METHOD a isGuiOpen ()Z
METHOD a isFilteringCraftable (Latx;)Z
METHOD a add (Lqc;)V
METHOD a copyFrom (Lxq;)V
METHOD a setGuiOpen (Z)V
METHOD b isFilteringCraftable ()Z
METHOD b contains (Layw;)Z
METHOD b setFilteringCraftable (Z)V
METHOD c isFurnaceGuiOpen ()Z
METHOD c setFurnaceGuiOpen (Z)V
METHOD d isFurnaceFilteringCraftable ()Z
METHOD d shouldDisplay (Layw;)Z
METHOD d setFurnaceFilteringCraftable (Z)V
METHOD e onRecipeDisplayed (Layw;)V

View File

@ -1,4 +1,5 @@
CLASS oc
CLASS oc$a
FIELD c guiOpen Z
FIELD d filteringCraftable Z
FIELD e furnaceGuiOpen Z

8
mappings/pz.mapping Normal file
View File

@ -0,0 +1,8 @@
CLASS pz
FIELD b recipeFinder Lard;
METHOD a acceptAlignedInput (Ljava/util/Iterator;IIII)V
ARG 1 inputs
ARG 2 slot
ARG 3 amount
ARG 4 gridX
ARG 5 gridY