Guest User

Untitled

a guest
Jun 19th, 2021
81
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package com.kup.burgercraft.setup;
  2.  
  3. import com.kup.burgercraft.Burgercraft;
  4. import com.kup.burgercraft.crafting.recipe.MeatGrindingRecipe;
  5. import net.minecraft.item.crafting.*;
  6. import net.minecraft.util.ResourceLocation;
  7. import net.minecraftforge.fml.RegistryObject;
  8.  
  9. public class ModRecipes {
  10.  
  11.     private static ResourceLocation modId(String path) {
  12.         return new ResourceLocation(Burgercraft.MOD_ID, path);
  13.     }
  14.  
  15.     public static final ResourceLocation MEAT_GRINDING = modId("meat_grinding");
  16.  
  17.     public static class Types {
  18.         public static final IRecipeType<MeatGrindingRecipe> MEAT_GRINDING_TYPE = registerType(modId("meat_grinding"));
  19.  
  20.         private static <T extends IRecipe<?>> IRecipeType<T> registerType(ResourceLocation typeName) {
  21.             return IRecipeType.register(typeName.toString());
  22.         }
  23.     }
  24.  
  25.     public static class Serializers {
  26.         public static final RegistryObject<IRecipeSerializer<MeatGrindingRecipe>> MEAT_GRINDING = Registration.RECIPE_SERIALIZERS.register(
  27.                 modId("meat_grinding").toString(), MeatGrindingRecipe.Serializer::new);
  28.     }
  29.  
  30.     public static void register(){}
  31. }
  32.  
RAW Paste Data