More REI compat
This commit is contained in:
parent
e0cf41db63
commit
fbe25dbd85
8 changed files with 107 additions and 76 deletions
|
@ -10,33 +10,6 @@ import ru.betterend.registry.BlockRegistry;
|
|||
import ru.betterend.registry.ItemRegistry;
|
||||
|
||||
public class CraftingRecipes {
|
||||
private static String[] helmet_recipe = new String[] {
|
||||
"III", "I I"
|
||||
};
|
||||
private static String[] chestplate_recipe = new String[] {
|
||||
"I I", "III", "III"
|
||||
};
|
||||
private static String[] leggings_recipe = new String[] {
|
||||
"III", "I I", "I I"
|
||||
};
|
||||
private static String[] boots_recipe = new String[] {
|
||||
"I I", "I I"
|
||||
};
|
||||
private static String[] shovel_recipe = new String[] {
|
||||
"I", "#", "#"
|
||||
};
|
||||
private static String[] sword_recipe = new String[] {
|
||||
"I", "I", "#"
|
||||
};
|
||||
private static String[] pickaxe_recipe = new String[] {
|
||||
"III", " # ", " # "
|
||||
};
|
||||
private static String[] axe_recipe = new String[] {
|
||||
"II", "#I", "# "
|
||||
};
|
||||
private static String[] hoe_recipe = new String[] {
|
||||
"II", "# ", "# "
|
||||
};
|
||||
|
||||
public static void register() {
|
||||
if (blockExists(BlockRegistry.ENDER_BLOCK)) {
|
||||
|
@ -52,67 +25,79 @@ public class CraftingRecipes {
|
|||
}
|
||||
if (blockExists(BlockRegistry.END_STONE_SMELTER)) {
|
||||
RecipeBuilder.make("end_stone_smelter", BlockRegistry.END_STONE_SMELTER)
|
||||
.setShape(new String[] { "###", "V#V", "###" })
|
||||
.setShape(new String[] { "###", "V V", "###" })
|
||||
.addMaterial('#', Blocks.END_STONE_BRICKS)
|
||||
.addMaterial('V', Items.BUCKET)
|
||||
.build();
|
||||
|
||||
}
|
||||
if (itemExists(ItemRegistry.TERMINITE_INGOT)) {
|
||||
registerHelmet("terminite", ItemRegistry.TERMINITE_INGOT, ItemRegistry.TERMINITE_HELMET);
|
||||
registerChestplate("terminite", ItemRegistry.TERMINITE_INGOT, ItemRegistry.TERMINITE_CHESTPLATE);
|
||||
registerLeggings("terminite", ItemRegistry.TERMINITE_INGOT, ItemRegistry.TERMINITE_LEGGINGS);
|
||||
registerBoots("terminite", ItemRegistry.TERMINITE_INGOT, ItemRegistry.TERMINITE_BOOTS);
|
||||
registerShovel("terminite", ItemRegistry.TERMINITE_INGOT, ItemRegistry.TERMINITE_SHOVEL);
|
||||
registerSword("terminite", ItemRegistry.TERMINITE_INGOT, ItemRegistry.TERMINITE_SWORD);
|
||||
registerPickaxe("terminite", ItemRegistry.TERMINITE_INGOT, ItemRegistry.TERMINITE_PICKAXE);
|
||||
registerAxe("terminite", ItemRegistry.TERMINITE_INGOT, ItemRegistry.TERMINITE_AXE);
|
||||
registerHoe("terminite", ItemRegistry.TERMINITE_INGOT, ItemRegistry.TERMINITE_HOE);
|
||||
String material = "terminite";
|
||||
RecipeBuilder.make(material + "_block", BlockRegistry.TERMINITE_BLOCK)
|
||||
.setShape(new String[] { "III", "III", "III" })
|
||||
.addMaterial('I', ItemRegistry.TERMINITE_INGOT)
|
||||
.build();
|
||||
|
||||
registerHelmet(material, ItemRegistry.TERMINITE_INGOT, ItemRegistry.TERMINITE_HELMET);
|
||||
registerChestplate(material, ItemRegistry.TERMINITE_INGOT, ItemRegistry.TERMINITE_CHESTPLATE);
|
||||
registerLeggings(material, ItemRegistry.TERMINITE_INGOT, ItemRegistry.TERMINITE_LEGGINGS);
|
||||
registerBoots(material, ItemRegistry.TERMINITE_INGOT, ItemRegistry.TERMINITE_BOOTS);
|
||||
registerShovel(material, ItemRegistry.TERMINITE_INGOT, ItemRegistry.TERMINITE_SHOVEL);
|
||||
registerSword(material, ItemRegistry.TERMINITE_INGOT, ItemRegistry.TERMINITE_SWORD);
|
||||
registerPickaxe(material, ItemRegistry.TERMINITE_INGOT, ItemRegistry.TERMINITE_PICKAXE);
|
||||
registerAxe(material, ItemRegistry.TERMINITE_INGOT, ItemRegistry.TERMINITE_AXE);
|
||||
registerHoe(material, ItemRegistry.TERMINITE_INGOT, ItemRegistry.TERMINITE_HOE);
|
||||
}
|
||||
if (itemExists(ItemRegistry.AETERNIUM_INGOT)) {
|
||||
registerHelmet("aeternium", ItemRegistry.AETERNIUM_INGOT, ItemRegistry.AETERNIUM_HELMET);
|
||||
registerChestplate("aeternium", ItemRegistry.AETERNIUM_INGOT, ItemRegistry.AETERNIUM_CHESTPLATE);
|
||||
registerLeggings("aeternium", ItemRegistry.AETERNIUM_INGOT, ItemRegistry.AETERNIUM_LEGGINGS);
|
||||
registerBoots("aeternium", ItemRegistry.AETERNIUM_INGOT, ItemRegistry.AETERNIUM_BOOTS);
|
||||
registerShovel("aeternium", ItemRegistry.AETERNIUM_INGOT, ItemRegistry.AETERNIUM_SHOVEL);
|
||||
registerSword("aeternium", ItemRegistry.AETERNIUM_INGOT, ItemRegistry.AETERNIUM_SWORD);
|
||||
registerPickaxe("aeternium", ItemRegistry.AETERNIUM_INGOT, ItemRegistry.AETERNIUM_PICKAXE);
|
||||
registerAxe("aeternium", ItemRegistry.AETERNIUM_INGOT, ItemRegistry.AETERNIUM_AXE);
|
||||
registerHoe("aeternium", ItemRegistry.AETERNIUM_INGOT, ItemRegistry.AETERNIUM_HOE);
|
||||
String material = "aeternium";
|
||||
RecipeBuilder.make(material + "_block", BlockRegistry.AETERNIUM_BLOCK)
|
||||
.setShape(new String[] { "III", "III", "III" })
|
||||
.addMaterial('I', ItemRegistry.AETERNIUM_INGOT)
|
||||
.build();
|
||||
|
||||
registerHelmet(material, ItemRegistry.AETERNIUM_INGOT, ItemRegistry.AETERNIUM_HELMET);
|
||||
registerChestplate(material, ItemRegistry.AETERNIUM_INGOT, ItemRegistry.AETERNIUM_CHESTPLATE);
|
||||
registerLeggings(material, ItemRegistry.AETERNIUM_INGOT, ItemRegistry.AETERNIUM_LEGGINGS);
|
||||
registerBoots(material, ItemRegistry.AETERNIUM_INGOT, ItemRegistry.AETERNIUM_BOOTS);
|
||||
registerShovel(material, ItemRegistry.AETERNIUM_INGOT, ItemRegistry.AETERNIUM_SHOVEL);
|
||||
registerSword(material, ItemRegistry.AETERNIUM_INGOT, ItemRegistry.AETERNIUM_SWORD);
|
||||
registerPickaxe(material, ItemRegistry.AETERNIUM_INGOT, ItemRegistry.AETERNIUM_PICKAXE);
|
||||
registerAxe(material, ItemRegistry.AETERNIUM_INGOT, ItemRegistry.AETERNIUM_AXE);
|
||||
registerHoe(material, ItemRegistry.AETERNIUM_INGOT, ItemRegistry.AETERNIUM_HOE);
|
||||
}
|
||||
}
|
||||
|
||||
private static void registerHelmet(String name, Item material, Item result) {
|
||||
RecipeBuilder.make(name + "_helmet", result)
|
||||
.setShape(helmet_recipe)
|
||||
.setShape(new String[] { "III", "I I" })
|
||||
.addMaterial('I', material)
|
||||
.build();
|
||||
}
|
||||
|
||||
private static void registerChestplate(String name, Item material, Item result) {
|
||||
RecipeBuilder.make(name + "_chestplate", result)
|
||||
.setShape(chestplate_recipe)
|
||||
.setShape(new String[] { "I I", "III", "III" })
|
||||
.addMaterial('I', material)
|
||||
.build();
|
||||
}
|
||||
|
||||
private static void registerLeggings(String name, Item material, Item result) {
|
||||
RecipeBuilder.make(name + "_leggings", result)
|
||||
.setShape(leggings_recipe)
|
||||
.setShape(new String[] { "III", "I I", "I I" })
|
||||
.addMaterial('I', material)
|
||||
.build();
|
||||
}
|
||||
|
||||
private static void registerBoots(String name, Item material, Item result) {
|
||||
RecipeBuilder.make(name + "_boots", result)
|
||||
.setShape(boots_recipe)
|
||||
.setShape(new String[] { "I I", "I I" })
|
||||
.addMaterial('I', material)
|
||||
.build();
|
||||
}
|
||||
|
||||
private static void registerShovel(String name, Item material, Item result) {
|
||||
RecipeBuilder.make(name + "_shovel", result)
|
||||
.setShape(shovel_recipe)
|
||||
.setShape(new String[] { "I", "#", "#" })
|
||||
.addMaterial('I', material)
|
||||
.addMaterial('#', Items.STICK)
|
||||
.build();
|
||||
|
@ -120,7 +105,7 @@ public class CraftingRecipes {
|
|||
|
||||
private static void registerSword(String name, Item material, Item result) {
|
||||
RecipeBuilder.make(name + "_sword", result)
|
||||
.setShape(sword_recipe)
|
||||
.setShape(new String[] { "I", "I", "#" })
|
||||
.addMaterial('I', material)
|
||||
.addMaterial('#', Items.STICK)
|
||||
.build();
|
||||
|
@ -128,7 +113,7 @@ public class CraftingRecipes {
|
|||
|
||||
private static void registerPickaxe(String name, Item material, Item result) {
|
||||
RecipeBuilder.make(name + "_pickaxe", result)
|
||||
.setShape(pickaxe_recipe)
|
||||
.setShape(new String[] { "III", " # ", " # " })
|
||||
.addMaterial('I', material)
|
||||
.addMaterial('#', Items.STICK)
|
||||
.build();
|
||||
|
@ -136,7 +121,7 @@ public class CraftingRecipes {
|
|||
|
||||
private static void registerAxe(String name, Item material, Item result) {
|
||||
RecipeBuilder.make(name + "_axe", result)
|
||||
.setShape(axe_recipe)
|
||||
.setShape(new String[] { "II", "#I", "# " })
|
||||
.addMaterial('I', material)
|
||||
.addMaterial('#', Items.STICK)
|
||||
.build();
|
||||
|
@ -144,7 +129,7 @@ public class CraftingRecipes {
|
|||
|
||||
private static void registerHoe(String name, Item material, Item result) {
|
||||
RecipeBuilder.make(name + "_hoe", result)
|
||||
.setShape(hoe_recipe)
|
||||
.setShape(new String[] { "II", "# ", "# " })
|
||||
.addMaterial('I', material)
|
||||
.addMaterial('#', Items.STICK)
|
||||
.build();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue