Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

map recipes #631

Draft
wants to merge 1 commit into
base: 24w38a
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 20 additions & 1 deletion mappings/net/minecraft/recipe/InputSlotFiller.mapping
Original file line number Diff line number Diff line change
@@ -1,10 +1,29 @@
CLASS net/minecraft/unmapped/C_rqdekljo net/minecraft/recipe/InputSlotFiller
FIELD f_esjwwiqu height I
FIELD f_kjfcpfev inputSlots Ljava/util/List;
FIELD f_mmlmkitf inventory Lnet/minecraft/unmapped/C_sxzqocrm;
FIELD f_mykbaanb handler Lnet/minecraft/unmapped/C_rqdekljo$C_wdzsgelo;
FIELD f_onjosgzp slotsToClear Ljava/util/List;
FIELD f_qyjiucuo width I
FIELD f_smhfaqyt useAllItems Z
FIELD f_tqmjruaz MISSING_INDEX I
METHOD m_eludjpso returnInputs ()V
METHOD m_ohlssgdj getFreeInventorySlots ()I
METHOD m_fjczeutg calculateAmountToCraft (IZ)I
ARG 1 useAllItems
ARG 2 match
METHOD m_jrqrlblg (Lnet/minecraft/unmapped/C_dscbrwbj;Lnet/minecraft/unmapped/C_fcquvjby;)V
ARG 1 recipe
METHOD m_mnhwpoca moveToSlot (Lnet/minecraft/unmapped/C_nhvqfffd;Lnet/minecraft/unmapped/C_cjzoxshv;I)I
ARG 1 slot
ARG 3 amount
METHOD m_ohlssgdj getFreeInventorySlots ()I
METHOD m_pxhtzyjl fill (Lnet/minecraft/unmapped/C_rqdekljo$C_wdzsgelo;IILjava/util/List;Ljava/util/List;Lnet/minecraft/unmapped/C_sxzqocrm;Lnet/minecraft/unmapped/C_dscbrwbj;ZZ)Lnet/minecraft/unmapped/C_mugvwvfp$C_uwhcecho;
ARG 1 width
ARG 2 height
ARG 3 inputSlots
ARG 4 slotsToClear
ARG 8 creative
METHOD m_zwgzfhws canReturnInputs ()Z
CLASS C_wdzsgelo Handler
METHOD m_aowjqtqt matches (Lnet/minecraft/unmapped/C_dscbrwbj;)Z
METHOD m_ozisvqoq clear ()V
1 change: 1 addition & 0 deletions mappings/net/minecraft/recipe/Recipe.mapping
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ CLASS net/minecraft/unmapped/C_awrmdwqd net/minecraft/recipe/Recipe
ARG 1 provider
METHOD m_jjsxdttb matches (Lnet/minecraft/unmapped/C_cxmcihwl;Lnet/minecraft/unmapped/C_cdctfzbn;)Z
ARG 1 input
METHOD m_jzhvfhoe getWorkstation ()Lnet/minecraft/unmapped/C_sddaxwyk;
METHOD m_nmeksozi isIgnoredInRecipeBook ()Z
COMMENT {@return whether this recipe is ignored by the recipe book} If a recipe
COMMENT is ignored by the recipe book, it will be never displayed. In addition,
Expand Down
41 changes: 33 additions & 8 deletions mappings/net/minecraft/recipe/RecipeMatcher.mapping
Original file line number Diff line number Diff line change
@@ -1,34 +1,59 @@
CLASS net/minecraft/unmapped/C_nyagoaau net/minecraft/recipe/RecipeMatcher
COMMENT Matching class that matches a recipe to its required resources.
COMMENT This specifically does not check patterns (See {@link ShapedRecipe} for that).
FIELD f_lzaqyyse amounts Lit/unimi/dsi/fastutil/objects/Reference2IntOpenHashMap;
METHOD m_ilmcgbtf clear ()V
METHOD m_okheizlq consume (Ljava/lang/Object;I)V
COMMENT Consumes a resource from the pool of available items.
ARG 2 itemId
COMMENT the raw id of the item being consumed
METHOD m_wkrwvzbp addInput (Ljava/lang/Object;I)V
ARG 1 input
ARG 2 amount
METHOD m_qzcfdjbc hasAny (Ljava/lang/Object;)Z
ARG 1 input
METHOD m_sbpnsepr account (Ljava/lang/Object;I)V
METHOD m_uachwhuy hasAtLeast (Ljava/lang/Object;I)Z
ARG 1 input
ARG 2 amount
METHOD m_wkrwvzbp put (Ljava/lang/Object;I)V
COMMENT Adds an input to be used for recipe matching.
ARG 2 itemId
COMMENT the raw ID of the item to match
ARG 1 input
ARG 2 amount
METHOD m_yhigjszt countCrafts (Ljava/util/List;ILnet/minecraft/unmapped/C_nyagoaau$C_xftfxaqa;)I
ARG 3 callback
METHOD m_yqdnhmqj match (Ljava/util/List;ILnet/minecraft/unmapped/C_nyagoaau$C_xftfxaqa;)Z
ARG 3 callback
CLASS C_tvjqrchc Matcher
FIELD f_bjsngxdw totalIngredients I
FIELD f_csjnvinn requiredItems Ljava/util/List;
FIELD f_ctzeokob requirementsMatrix Ljava/util/BitSet;
FIELD f_kclymipu totalRequiredItems I
FIELD f_uifobfbp ingredients Ljava/util/List;
FIELD f_wkisrowc ingredientItemLookup Lit/unimi/dsi/fastutil/ints/IntList;
METHOD m_lmstygqg unfulfillRequirement (I)V
ARG 1 itemId
METHOD m_ajdwkhsu setInitialMatches ()V
METHOD m_bjscespa match (ILnet/minecraft/unmapped/C_nyagoaau$C_xftfxaqa;)Z
ARG 1 multiplier
METHOD m_wyqyvyeg getMaximumCrafts ()I
ARG 2 callback
METHOD m_demomdbv setMatch (II)V
METHOD m_lmstygqg unfulfillRequirement (I)V
ARG 1 itemId
METHOD m_oiaawhql getMatchIndex (II)I
ARG 1 itemIndex
ARG 2 ingredientIndex
METHOD m_otmvcbma createItemRequirementList ()Ljava/util/List;
METHOD m_oxrukgsb needsRequirement (II)Z
ARG 1 itemIndex
ARG 2 ingredientIndex
METHOD m_tzjdsahq isIndexedItem (I)Z
ARG 0 item
METHOD m_ushjqgji countCrafts (ILnet/minecraft/unmapped/C_nyagoaau$C_xftfxaqa;)I
ARG 1 minimum
ARG 2 callback
METHOD m_wyqyvyeg getMaximumCrafts ()I
METHOD m_xzbczili getRequirement (I)Z
ARG 1 itemId
METHOD m_zgebgjma getTotalRequiredItems ()I
METHOD m_zleeorrf getRequirementIndex (I)I
ARG 1 itemId
CLASS C_xftfxaqa ItemCallback
METHOD accept accept (Ljava/lang/Object;)V
ARG 1 item
CLASS C_yxyoqnti IngredientInfo
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,7 @@ CLASS net/minecraft/unmapped/C_mugvwvfp net/minecraft/screen/AbstractRecipeScree
METHOD m_eeamkwew fillInputSlots (ZZLnet/minecraft/unmapped/C_dscbrwbj;Lnet/minecraft/unmapped/C_sxzqocrm;)Lnet/minecraft/unmapped/C_mugvwvfp$C_uwhcecho;
ARG 1 craftAll
ARG 3 recipe
ARG 4 inventory
METHOD m_mldsqcel populateRecipeFinder (Lnet/minecraft/unmapped/C_fcquvjby;)V
METHOD m_zlpkpbya getCategory ()Lnet/minecraft/unmapped/C_mrybqpjh;
CLASS C_uwhcecho PostFillAction
3 changes: 3 additions & 0 deletions mappings/net/minecraft/unmapped/C_fcquvjby.mapping
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
CLASS net/minecraft/unmapped/C_fcquvjby
FIELD f_szbdkvfh recipeMatcher Lnet/minecraft/unmapped/C_nyagoaau;
METHOD m_syqmxkya canCraft (Lnet/minecraft/unmapped/C_awrmdwqd;ILnet/minecraft/unmapped/C_nyagoaau$C_xftfxaqa;)Z
Loading