Pretty Much Just a Library for My Other Mods, Primarily Adds Method Wrappers, Custom Reworked Sword Methods, Custom Wrapper for GameRegistry.addShapedRecipe(...), GameRegistry.addShapelessRecipe(...) and GameRegistry.addSmeltingRecipe(...)
Heres some Code Snippets.
public static void Shapeless(String name, ItemStack Output, ItemStack[][] In) {
if(In.length > 9) {throw new IllegalArgumentException("Provided ItemStack Array Exceeds Length 9");}
Ingredient[] IArray = new Ingredient[In.length];
for(int i=0;i<In.length;i++) {IArray[i] = Ingredient.fromStacks(In[i]);}
GameRegistry.addShapelessRecipe(new ResourceLocation(name),null,Output,IArray);
}
if(!(KeyList.length > 3)) {
CheckKeys(Grid, KeyList,3);
switch(KeyList.length) {
case 1:
GameRegistry.addShapedRecipe(Name, Group, output, Grid[0],
KeyList[0][0], KeyList[0][1]
);
break;
case 2:
GameRegistry.addShapedRecipe(Name, Group, output, Grid[0],
KeyList[0][0], KeyList[0][1],
KeyList[1][0], KeyList[1][1]
);
break;
case 3:
GameRegistry.addShapedRecipe(Name, Group, output, Grid[0],
KeyList[0][0], KeyList[0][1],
KeyList[1][0], KeyList[1][1],
KeyList[2][0], KeyList[2][1]
);
break;
default: throw new NullPointerException("No Keys Found / Err 0");
}
} else {throw new InvalidParameterException("provided keys exceed 3 slots");}
If You Have Questions Join My Discord Server And Upload a Thread In The Proggramming Forums.