SimpleTechRecipes.java (1061B)
1 package ambos.simpletech; 2 3 import net.minecraft.core.block.Block; 4 import net.minecraft.core.data.DataLoader; 5 import net.minecraft.core.data.registry.Registries; 6 import net.minecraft.core.data.registry.recipe.RecipeGroup; 7 import net.minecraft.core.data.registry.recipe.RecipeNamespace; 8 import net.minecraft.core.data.registry.recipe.RecipeSymbol; 9 import net.minecraft.core.data.registry.recipe.entry.RecipeEntryCrafting; 10 import net.minecraft.core.item.ItemStack; 11 import turniplabs.halplibe.util.RecipeEntrypoint; 12 13 public class SimpleTechRecipes implements RecipeEntrypoint { 14 public static final RecipeNamespace SIMPLE_TECH = new RecipeNamespace(); 15 public static final RecipeGroup<RecipeEntryCrafting<?, ?>> WORKBENCH = new RecipeGroup<>( 16 new RecipeSymbol(new ItemStack(Block.workbench))); 17 18 @Override 19 public void onRecipesReady() { 20 SIMPLE_TECH.register("workbench", WORKBENCH); 21 Registries.RECIPES.register("simpletech", SIMPLE_TECH); 22 DataLoader.loadRecipes("/assets/simpletech/recipes/workbench.json"); 23 } 24 }