Advertisement
Guest User

Untitled

a guest
Feb 24th, 2017
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.61 KB | None | 0 0
  1. public class ModShapedRecipe extends ShapedRecipes
  2. {
  3.  
  4.     public ModShapedRecipe(int width, int height, ItemStack[] recipeItems, ItemStack output)
  5.     {
  6.         super(width, height, recipeItems, output);
  7.         RecipeSorter.register("thedarkness:shaped", ModShapedRecipe.class, RecipeSorter.Category.SHAPED, "after:minecraft:shaped");
  8.     }
  9.    
  10.     @Override
  11.     public boolean matches(InventoryCrafting inv, World worldIn)
  12.     {
  13.         ReliquaryWorldData worldData = new ReliquaryWorldData();
  14.         if(!worldData.isReliquaryCrafted() && super.matches(inv, worldIn))
  15.         {
  16.             return true;
  17.         }
  18.         else
  19.             return super.matches(inv, worldIn);
  20.     }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement