Skip to content

Commit 6971c34

Browse files
fix: update to make things register in the correct order and delete bad mixin
1 parent bf2c444 commit 6971c34

5 files changed

Lines changed: 10 additions & 47 deletions

File tree

src/client/java/com/tcm/MineTale/datagen/ModModelProvider.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
package com.tcm.MineTale.datagen;
22

3-
import com.tcm.MineTale.MineTale;
43
import com.tcm.MineTale.registry.ModBlocks;
54
import net.fabricmc.fabric.api.client.datagen.v1.provider.FabricModelProvider;
65
import net.fabricmc.fabric.api.datagen.v1.FabricDataOutput;
@@ -9,9 +8,6 @@
98
import net.minecraft.client.data.models.blockstates.MultiVariantGenerator;
109
import net.minecraft.client.data.models.blockstates.PropertyDispatch;
1110
import 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;
1511
import net.minecraft.client.renderer.block.model.VariantMutator;
1612
import net.minecraft.core.Direction;
1713
import net.minecraft.resources.Identifier;

src/client/java/com/tcm/MineTale/mixin/client/ClientRecipeBookMixin.java

Lines changed: 0 additions & 37 deletions
This file was deleted.

src/client/resources/minetale.client.mixins.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
"package": "com.tcm.MineTale.mixin.client",
44
"compatibilityLevel": "JAVA_21",
55
"client": [
6-
"ClientRecipeBookMixin",
76
"RecipeBookComponentAccessor"
87
],
98
"injectors": {

src/main/java/com/tcm/MineTale/block/workbenches/FurnaceWorkbench.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
import com.tcm.MineTale.registry.ModTiers.FurnaceTier;
1111

1212
import net.minecraft.core.BlockPos;
13-
import net.minecraft.core.Direction;
1413
import net.minecraft.world.level.BlockGetter;
1514
import net.minecraft.world.level.Level;
1615
import net.minecraft.world.level.block.Block;

src/main/java/com/tcm/MineTale/registry/ModRecipeDisplay.java

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)