Add additional pipe sealant recipe using slimeballs

This commit is contained in:
Arona Jones 2015-02-01 15:53:48 +00:00
parent 173e068ed8
commit 4e2e84990a

View file

@ -213,7 +213,7 @@ public class BuildCraftTransport extends BuildCraftMod {
public static Item pipePowerDiamond; public static Item pipePowerDiamond;
public static Item pipePowerEmerald; public static Item pipePowerEmerald;
public static Item pipePowerSandstone; public static Item pipePowerSandstone;
public static int groupItemsTrigger; public static int groupItemsTrigger;
public static String[] facadeBlacklist; public static String[] facadeBlacklist;
@ -238,7 +238,7 @@ public class BuildCraftTransport extends BuildCraftMod {
public static boolean debugPrintFacadeList = false; public static boolean debugPrintFacadeList = false;
public static float gateCostMultiplier = 1.0F; public static float gateCostMultiplier = 1.0F;
private static LinkedList<PipeRecipe> pipeRecipes = new LinkedList<PipeRecipe>(); private static LinkedList<PipeRecipe> pipeRecipes = new LinkedList<PipeRecipe>();
public IIconProvider pipeIconProvider = new PipeIconProvider(); public IIconProvider pipeIconProvider = new PipeIconProvider();
@ -388,7 +388,7 @@ public class BuildCraftTransport extends BuildCraftMod {
gateCopier = new ItemGateCopier(); gateCopier = new ItemGateCopier();
CoreProxy.proxy.registerItem(gateCopier); CoreProxy.proxy.registerItem(gateCopier);
for (PipeContents kind : PipeContents.values()) { for (PipeContents kind : PipeContents.values()) {
triggerPipe[kind.ordinal()] = new TriggerPipeContents(kind); triggerPipe[kind.ordinal()] = new TriggerPipeContents(kind);
} }
@ -452,7 +452,7 @@ public class BuildCraftTransport extends BuildCraftMod {
StatementManager.registerParameterClass(ActionParameterSignal.class); StatementManager.registerParameterClass(ActionParameterSignal.class);
StatementManager.registerTriggerProvider(new PipeTriggerProvider()); StatementManager.registerTriggerProvider(new PipeTriggerProvider());
StatementManager.registerActionProvider(new PipeActionProvider()); StatementManager.registerActionProvider(new PipeActionProvider());
PipeManager.registerStripesHandler(new StripesHandlerRightClick()); PipeManager.registerStripesHandler(new StripesHandlerRightClick());
PipeManager.registerStripesHandler(new StripesHandlerBucket()); PipeManager.registerStripesHandler(new StripesHandlerBucket());
PipeManager.registerStripesHandler(new StripesHandlerArrow()); PipeManager.registerStripesHandler(new StripesHandlerArrow());
@ -463,7 +463,7 @@ public class BuildCraftTransport extends BuildCraftMod {
PipeManager.registerPipePluggable(LensPluggable.class, "lens"); PipeManager.registerPipePluggable(LensPluggable.class, "lens");
PipeManager.registerPipePluggable(PlugPluggable.class, "plug"); PipeManager.registerPipePluggable(PlugPluggable.class, "plug");
PipeManager.registerPipePluggable(RobotStationPluggable.class, "robotStation"); PipeManager.registerPipePluggable(RobotStationPluggable.class, "robotStation");
if (BuildCraftCore.loadDefaultRecipes) { if (BuildCraftCore.loadDefaultRecipes) {
loadRecipes(); loadRecipes();
} }
@ -475,7 +475,7 @@ public class BuildCraftTransport extends BuildCraftMod {
@Mod.EventHandler @Mod.EventHandler
public void postInit(FMLPostInitializationEvent evt) { public void postInit(FMLPostInitializationEvent evt) {
facadeItem.initialize(); facadeItem.initialize();
if (debugPrintFacadeList) { if (debugPrintFacadeList) {
try { try {
PrintWriter writer = new PrintWriter("FacadeDebug.txt", "UTF-8"); PrintWriter writer = new PrintWriter("FacadeDebug.txt", "UTF-8");
@ -495,6 +495,7 @@ public class BuildCraftTransport extends BuildCraftMod {
public void loadRecipes() { public void loadRecipes() {
// Add base recipe for pipe waterproof. // Add base recipe for pipe waterproof.
GameRegistry.addShapelessRecipe(new ItemStack(pipeWaterproof, 1), new ItemStack(Items.dye, 1, 2)); GameRegistry.addShapelessRecipe(new ItemStack(pipeWaterproof, 1), new ItemStack(Items.dye, 1, 2));
GameRegistry.addShapelessRecipe(new ItemStack(pipeWaterproof, 1), new ItemStack(Items.slime_ball, 1, 2));
// Add pipe recipes // Add pipe recipes
for (PipeRecipe pipe : pipeRecipes) { for (PipeRecipe pipe : pipeRecipes) {
@ -506,7 +507,7 @@ public class BuildCraftTransport extends BuildCraftMod {
} }
GameRegistry.addRecipe(new PipeColoringRecipe()); GameRegistry.addRecipe(new PipeColoringRecipe());
CoreProxy.proxy.addCraftingRecipe(new ItemStack(filteredBufferBlock, 1), CoreProxy.proxy.addCraftingRecipe(new ItemStack(filteredBufferBlock, 1),
"wdw", "wcw", "wpw", 'w', "plankWood", 'd', "wdw", "wcw", "wpw", 'w', "plankWood", 'd',
BuildCraftTransport.pipeItemsDiamond, 'c', Blocks.chest, 'p', BuildCraftTransport.pipeItemsDiamond, 'c', Blocks.chest, 'p',
@ -525,7 +526,7 @@ public class BuildCraftTransport extends BuildCraftMod {
if (Loader.isModLoaded("BuildCraft|Silicon")) { if (Loader.isModLoaded("BuildCraft|Silicon")) {
GameRegistry.addShapelessRecipe(new ItemStack(gateCopier, 1), new ItemStack(BuildCraftCore.wrenchItem), Chipset.RED.getStack(1)); GameRegistry.addShapelessRecipe(new ItemStack(gateCopier, 1), new ItemStack(BuildCraftCore.wrenchItem), Chipset.RED.getStack(1));
// PIPE WIRE // PIPE WIRE
BuildcraftRecipeRegistry.assemblyTable.addRecipe("buildcraft:redWire", 5000, PipeWire.RED.getStack(8), BuildcraftRecipeRegistry.assemblyTable.addRecipe("buildcraft:redWire", 5000, PipeWire.RED.getStack(8),
"dyeRed", "dustRedstone", "ingotIron"); "dyeRed", "dustRedstone", "ingotIron");
@ -586,7 +587,7 @@ public class BuildCraftTransport extends BuildCraftMod {
BuildcraftRecipeRegistry.assemblyTable.addRecipe("buildcraft:orGate" + materialName, energyCost, BuildcraftRecipeRegistry.assemblyTable.addRecipe("buildcraft:orGate" + materialName, energyCost,
ItemGate.makeGateItem(material, GateLogic.OR), inputs); ItemGate.makeGateItem(material, GateLogic.OR), inputs);
} }
@Mod.EventHandler @Mod.EventHandler
public void processIMCRequests(IMCEvent event) { public void processIMCRequests(IMCEvent event) {
InterModComms.processIMC(event); InterModComms.processIMC(event);
@ -597,19 +598,19 @@ public class BuildCraftTransport extends BuildCraftMod {
Object... ingredients) { Object... ingredients) {
ItemPipe res = BlockGenericPipe.registerPipe(clas, creativeTab); ItemPipe res = BlockGenericPipe.registerPipe(clas, creativeTab);
res.setUnlocalizedName(clas.getSimpleName()); res.setUnlocalizedName(clas.getSimpleName());
// Add appropriate recipes to temporary list // Add appropriate recipes to temporary list
if (ingredients.length == 3) { if (ingredients.length == 3) {
for (int i = 0; i < 17; i++) { for (int i = 0; i < 17; i++) {
PipeRecipe recipe = new PipeRecipe(); PipeRecipe recipe = new PipeRecipe();
ItemStack glass; ItemStack glass;
if (i == 0) { if (i == 0) {
glass = new ItemStack(Blocks.glass); glass = new ItemStack(Blocks.glass);
} else { } else {
glass = new ItemStack(Blocks.stained_glass, 1, i - 1); glass = new ItemStack(Blocks.stained_glass, 1, i - 1);
} }
recipe.result = new ItemStack(res, 8, i); recipe.result = new ItemStack(res, 8, i);
recipe.input = new Object[]{"ABC", 'A', ingredients[0], 'B', glass, 'C', ingredients[2]}; recipe.input = new Object[]{"ABC", 'A', ingredients[0], 'B', glass, 'C', ingredients[2]};
@ -618,20 +619,20 @@ public class BuildCraftTransport extends BuildCraftMod {
} else if (ingredients.length == 2) { } else if (ingredients.length == 2) {
for (int i = 0; i < 17; i++) { for (int i = 0; i < 17; i++) {
PipeRecipe recipe = new PipeRecipe(); PipeRecipe recipe = new PipeRecipe();
Object left = ingredients[0]; Object left = ingredients[0];
Object right = ingredients[1]; Object right = ingredients[1];
if (ingredients[1] instanceof ItemPipe) { if (ingredients[1] instanceof ItemPipe) {
right = new ItemStack((Item) right, 1, i); right = new ItemStack((Item) right, 1, i);
} }
recipe.isShapeless = true; recipe.isShapeless = true;
recipe.result = new ItemStack(res, 1, i); recipe.result = new ItemStack(res, 1, i);
recipe.input = new Object[]{left, right}; recipe.input = new Object[]{left, right};
pipeRecipes.add(recipe); pipeRecipes.add(recipe);
if (ingredients[1] instanceof ItemPipe) { if (ingredients[1] instanceof ItemPipe) {
PipeRecipe uncraft = new PipeRecipe(); PipeRecipe uncraft = new PipeRecipe();
uncraft.isShapeless = true; uncraft.isShapeless = true;