File tree Expand file tree Collapse file tree
main/java/com/tcm/MineTale Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11package com .tcm .MineTale .datagen ;
22
3- import com .tcm .MineTale .MineTale ;
43import com .tcm .MineTale .registry .ModBlocks ;
54import net .fabricmc .fabric .api .client .datagen .v1 .provider .FabricModelProvider ;
65import net .fabricmc .fabric .api .datagen .v1 .FabricDataOutput ;
98import net .minecraft .client .data .models .blockstates .MultiVariantGenerator ;
109import net .minecraft .client .data .models .blockstates .PropertyDispatch ;
1110import net .minecraft .client .data .models .model .ModelLocationUtils ;
12- import net .minecraft .client .data .models .model .ModelTemplates ;
13- import net .minecraft .client .data .models .model .TextureMapping ;
14- import net .minecraft .client .data .models .model .TextureSlot ;
1511import net .minecraft .client .renderer .block .model .VariantMutator ;
1612import net .minecraft .core .Direction ;
1713import net .minecraft .resources .Identifier ;
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 33 "package" : " com.tcm.MineTale.mixin.client" ,
44 "compatibilityLevel" : " JAVA_21" ,
55 "client" : [
6- " ClientRecipeBookMixin" ,
76 " RecipeBookComponentAccessor"
87 ],
98 "injectors" : {
Original file line number Diff line number Diff line change 1010import com .tcm .MineTale .registry .ModTiers .FurnaceTier ;
1111
1212import net .minecraft .core .BlockPos ;
13- import net .minecraft .core .Direction ;
1413import net .minecraft .world .level .BlockGetter ;
1514import net .minecraft .world .level .Level ;
1615import net .minecraft .world .level .block .Block ;
Original file line number Diff line number Diff line change @@ -27,18 +27,24 @@ public class ModRecipeDisplay {
2727 public static final RecipeDisplay .Type <WorkbenchRecipeDisplay > WORKBENCH_TYPE =
2828 new RecipeDisplay .Type <>(WorkbenchRecipeDisplay .CODEC , STREAM_CODEC );
2929
30- public static final RecipeBookCategory CAMPFIRE_SEARCH = registerCategory ("campfire_recipe_book_category" );
30+ // 1. Declare the fields but don't assign them yet
31+ public static RecipeBookCategory CAMPFIRE_SEARCH ;
32+ public static RecipeBookCategory WORKBENCH_SEARCH ;
33+ public static RecipeBookCategory FURNACE_T1_SEARCH ;
3134
32- public static final RecipeBookCategory WORKBENCH_SEARCH = registerCategory ("workbench_recipe_book_category" );
33-
34- public static final RecipeBookCategory FURNACE_T1_SEARCH = registerCategory ("furnace_t1_recipe_book_category" );
35+
3536
3637 /**
3738 * Registers the workbench recipe display type into the built-in recipe display registry.
3839 *
3940 * The registration uses this mod's ID combined with the path "workbench_recipe_display" as the identifier.
4041 */
4142 public static void initialize () {
43+ CAMPFIRE_SEARCH = registerCategory ("campfire_recipe_book_category" );
44+
45+ WORKBENCH_SEARCH = registerCategory ("workbench_recipe_book_category" );
46+
47+ FURNACE_T1_SEARCH = registerCategory ("furnace_t1_recipe_book_category" );
4248 // Register the Display TYPE
4349 Registry .register (
4450 BuiltInRegistries .RECIPE_DISPLAY ,
You can’t perform that action at this time.
0 commit comments