mirror of
https://github.com/GTNewHorizons/EnderIO.git
synced 2026-11-22 21:19:49 +00:00
Massive recipe cleanup, everything should use oredict properly now
This commit is contained in:
1 parent
70080d9acf
commit
d98be8dd86
11 files changed
+338
-317
No files matched your search
@@ -0,0 +1,35 @@
|
||||
package crazypants.util;
|
||||
|
||||
import net.minecraft.block.Block;
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraftforge.oredict.ShapedOreRecipe;
|
||||
import net.minecraftforge.oredict.ShapelessOreRecipe;
|
||||
import cpw.mods.fml.common.registry.GameRegistry;
|
||||
|
||||
public class RecipeUtil {
|
||||
|
||||
public static void addShaped(Item res, Object... recipe) {
|
||||
addShaped(new ItemStack(res), recipe);
|
||||
}
|
||||
|
||||
public static void addShaped(Block res, Object... recipe) {
|
||||
addShaped(new ItemStack(res), recipe);
|
||||
}
|
||||
|
||||
public static void addShaped(ItemStack res, Object... recipe) {
|
||||
GameRegistry.addRecipe(new ShapedOreRecipe(res, recipe));
|
||||
}
|
||||
|
||||
public static void addShapeless(Item res, Object... recipe) {
|
||||
addShaped(new ItemStack(res), recipe);
|
||||
}
|
||||
|
||||
public static void addShapeless(Block res, Object... recipe) {
|
||||
addShaped(new ItemStack(res), recipe);
|
||||
}
|
||||
|
||||
public static void addShapeless(ItemStack res, Object... recipe) {
|
||||
GameRegistry.addRecipe(new ShapelessOreRecipe(res, recipe));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user