Advertisement
Guest User

Untitled

a guest
Feb 1st, 2021
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. package com.nick.humlands.common.recipe;
  2.  
  3. import javax.annotation.Nonnull;
  4.  
  5. import com.nick.humlands.Humlands;
  6.  
  7. import net.minecraft.item.crafting.IRecipe;
  8. import net.minecraft.item.crafting.IRecipeType;
  9. import net.minecraft.item.crafting.Ingredient;
  10. import net.minecraft.util.ResourceLocation;
  11. import net.minecraft.util.registry.Registry;
  12. import net.minecraftforge.items.wrapper.RecipeWrapper;
  13.  
  14. public interface ISculptorRecipe extends IRecipe<RecipeWrapper> {
  15.  
  16. IRecipeType<SculptorRecipe> SCULPTOR = register("sculptor");
  17. ResourceLocation SCULPTOR_TYPE_ID = new ResourceLocation(Humlands.MOD_ID, "sculptor");
  18.  
  19. @Nonnull
  20. @Override
  21. default IRecipeType<?> getType() {
  22. return SCULPTOR;
  23. }
  24.  
  25. @Override
  26. default boolean canFit(int width, int height) {
  27. return false;
  28. }
  29.  
  30. Ingredient getInput();
  31.  
  32. static <T extends IRecipe<?>> IRecipeType<T> register(final String key) {
  33. return Registry.register(Registry.RECIPE_TYPE, new ResourceLocation(key), new IRecipeType<T>() {
  34. public String toString() {
  35. return key;
  36. }
  37. });
  38. }
  39. }
  40.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement