buff fluid pipes, add sandstone power pipes
This commit is contained in:
parent
82533d24f6
commit
bbfb3e398f
6 changed files with 65 additions and 7 deletions
|
@ -110,6 +110,7 @@ import buildcraft.transport.pipes.PipePowerEmerald;
|
|||
import buildcraft.transport.pipes.PipePowerGold;
|
||||
import buildcraft.transport.pipes.PipePowerIron;
|
||||
import buildcraft.transport.pipes.PipePowerQuartz;
|
||||
import buildcraft.transport.pipes.PipePowerSandstone;
|
||||
import buildcraft.transport.pipes.PipePowerStone;
|
||||
import buildcraft.transport.pipes.PipePowerWood;
|
||||
import buildcraft.transport.pipes.PipeStructureCobblestone;
|
||||
|
@ -197,6 +198,7 @@ public class BuildCraftTransport extends BuildCraftMod {
|
|||
public static Item pipePowerGold;
|
||||
public static Item pipePowerDiamond;
|
||||
public static Item pipePowerEmerald;
|
||||
public static Item pipePowerSandstone;
|
||||
|
||||
public static int groupItemsTrigger;
|
||||
public static String[] facadeBlacklist;
|
||||
|
@ -408,8 +410,9 @@ public class BuildCraftTransport extends BuildCraftMod {
|
|||
pipePowerGold = buildPipe(PipePowerGold.class, "Golden Kinesis Pipe", CreativeTabBuildCraft.PIPES, "dustRedstone", pipeItemsGold);
|
||||
pipePowerDiamond = buildPipe(PipePowerDiamond.class, "Diamond Kinesis Pipe", CreativeTabBuildCraft.PIPES, "dustRedstone", pipeItemsDiamond);
|
||||
pipePowerEmerald = buildPipe(PipePowerEmerald.class, "Emerald Kinesis Pipe", CreativeTabBuildCraft.PIPES, "dustRedstone", pipeItemsEmerald);
|
||||
|
||||
pipeStructureCobblestone = buildPipe(PipeStructureCobblestone.class, "Cobblestone Structure Pipe", CreativeTabBuildCraft.PIPES, Blocks.gravel, pipeItemsCobblestone);
|
||||
pipePowerSandstone = buildPipe(PipePowerSandstone.class, "Sandstone Kinesis Pipe", CreativeTabBuildCraft.PIPES, "dustRedstone", pipeItemsSandstone);
|
||||
|
||||
pipeStructureCobblestone = buildPipe(PipeStructureCobblestone.class, "Cobblestone Structure Pipe", CreativeTabBuildCraft.PIPES, Blocks.gravel, pipeItemsCobblestone);
|
||||
|
||||
pipeWire = new ItemPipeWire();
|
||||
CoreProxy.proxy.registerItem(pipeWire);
|
||||
|
|
|
@ -103,6 +103,7 @@ public class PipeIconProvider implements IIconProvider {
|
|||
PipePowerGold("pipePowerGold"),
|
||||
PipePowerQuartz("pipePowerQuartz"),
|
||||
PipePowerStone("pipePowerStone"),
|
||||
PipePowerSandstone("pipePowerSandstone"),
|
||||
PipePowerCobblestone("pipePowerCobblestone"),
|
||||
PipePowerWood_Standard("pipePowerWood_standard"),
|
||||
PipePowerEmerald_Standard("pipePowerEmerald_standard"),
|
||||
|
|
|
@ -600,11 +600,11 @@ public class PipeTransportFluids extends PipeTransport implements IFluidHandler
|
|||
static {
|
||||
fluidCapacities.put(PipeFluidsCobblestone.class, 1 * BuildCraftTransport.pipeFluidsBaseFlowRate);
|
||||
fluidCapacities.put(PipeFluidsEmerald.class, 4 * BuildCraftTransport.pipeFluidsBaseFlowRate);
|
||||
fluidCapacities.put(PipeFluidsGold.class, 4 * BuildCraftTransport.pipeFluidsBaseFlowRate);
|
||||
fluidCapacities.put(PipeFluidsIron.class, 2 * BuildCraftTransport.pipeFluidsBaseFlowRate);
|
||||
fluidCapacities.put(PipeFluidsQuartz.class, 2 * BuildCraftTransport.pipeFluidsBaseFlowRate);
|
||||
fluidCapacities.put(PipeFluidsSandstone.class, 1 * BuildCraftTransport.pipeFluidsBaseFlowRate);
|
||||
fluidCapacities.put(PipeFluidsStone.class, 1 * BuildCraftTransport.pipeFluidsBaseFlowRate);
|
||||
fluidCapacities.put(PipeFluidsGold.class, 8 * BuildCraftTransport.pipeFluidsBaseFlowRate);
|
||||
fluidCapacities.put(PipeFluidsIron.class, 4 * BuildCraftTransport.pipeFluidsBaseFlowRate);
|
||||
fluidCapacities.put(PipeFluidsQuartz.class, 4 * BuildCraftTransport.pipeFluidsBaseFlowRate);
|
||||
fluidCapacities.put(PipeFluidsSandstone.class, 2 * BuildCraftTransport.pipeFluidsBaseFlowRate);
|
||||
fluidCapacities.put(PipeFluidsStone.class, 2 * BuildCraftTransport.pipeFluidsBaseFlowRate);
|
||||
fluidCapacities.put(PipeFluidsVoid.class, 1 * BuildCraftTransport.pipeFluidsBaseFlowRate);
|
||||
fluidCapacities.put(PipeFluidsWood.class, 1 * BuildCraftTransport.pipeFluidsBaseFlowRate);
|
||||
}
|
||||
|
|
|
@ -29,6 +29,7 @@ import buildcraft.transport.pipes.PipePowerEmerald;
|
|||
import buildcraft.transport.pipes.PipePowerGold;
|
||||
import buildcraft.transport.pipes.PipePowerIron;
|
||||
import buildcraft.transport.pipes.PipePowerQuartz;
|
||||
import buildcraft.transport.pipes.PipePowerSandstone;
|
||||
import buildcraft.transport.pipes.PipePowerStone;
|
||||
import buildcraft.transport.pipes.PipePowerWood;
|
||||
|
||||
|
@ -500,6 +501,7 @@ public class PipeTransportPower extends PipeTransport {
|
|||
powerCapacities.put(PipePowerCobblestone.class, 80);
|
||||
powerCapacities.put(PipePowerStone.class, 160);
|
||||
powerCapacities.put(PipePowerWood.class, 320);
|
||||
powerCapacities.put(PipePowerSandstone.class, 320);
|
||||
powerCapacities.put(PipePowerQuartz.class, 640);
|
||||
powerCapacities.put(PipePowerIron.class, 1280);
|
||||
powerCapacities.put(PipePowerGold.class, 2560);
|
||||
|
|
|
@ -71,6 +71,7 @@ public class TransportProxyClient extends TransportProxy {
|
|||
MinecraftForgeClient.registerItemRenderer(BuildCraftTransport.pipePowerGold, pipeItemRenderer);
|
||||
MinecraftForgeClient.registerItemRenderer(BuildCraftTransport.pipePowerDiamond, pipeItemRenderer);
|
||||
MinecraftForgeClient.registerItemRenderer(BuildCraftTransport.pipePowerEmerald, pipeItemRenderer);
|
||||
MinecraftForgeClient.registerItemRenderer(BuildCraftTransport.pipePowerSandstone, pipeItemRenderer);
|
||||
MinecraftForgeClient.registerItemRenderer(BuildCraftTransport.pipeStructureCobblestone, pipeItemRenderer);
|
||||
|
||||
MinecraftForgeClient.registerItemRenderer(BuildCraftTransport.pipeItemsVoid, pipeItemRenderer);
|
||||
|
|
51
common/buildcraft/transport/pipes/PipePowerSandstone.java
Normal file
51
common/buildcraft/transport/pipes/PipePowerSandstone.java
Normal file
|
@ -0,0 +1,51 @@
|
|||
/**
|
||||
* Copyright (c) 2011-2014, SpaceToad and the BuildCraft Team
|
||||
* http://www.mod-buildcraft.com
|
||||
*
|
||||
* BuildCraft is distributed under the terms of the Minecraft Mod Public
|
||||
* License 1.0, or MMPL. Please check the contents of the license located in
|
||||
* http://www.mod-buildcraft.com/MMPL-1.0.txt
|
||||
*/
|
||||
package buildcraft.transport.pipes;
|
||||
|
||||
import net.minecraft.item.Item;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
import cpw.mods.fml.relauncher.Side;
|
||||
import cpw.mods.fml.relauncher.SideOnly;
|
||||
import net.minecraftforge.common.util.ForgeDirection;
|
||||
import buildcraft.BuildCraftTransport;
|
||||
import buildcraft.api.core.IIconProvider;
|
||||
import buildcraft.transport.IPipeConnectionForced;
|
||||
import buildcraft.transport.Pipe;
|
||||
import buildcraft.transport.PipeIconProvider;
|
||||
import buildcraft.transport.PipeTransportPower;
|
||||
import buildcraft.transport.TileGenericPipe;
|
||||
|
||||
public class PipePowerSandstone extends Pipe<PipeTransportPower> implements IPipeConnectionForced {
|
||||
|
||||
public PipePowerSandstone(Item item) {
|
||||
super(new PipeTransportPower(), item);
|
||||
transport.initFromPipe(getClass());
|
||||
}
|
||||
|
||||
@Override
|
||||
@SideOnly(Side.CLIENT)
|
||||
public IIconProvider getIconProvider() {
|
||||
return BuildCraftTransport.instance.pipeIconProvider;
|
||||
}
|
||||
|
||||
@Override
|
||||
public int getIconIndex(ForgeDirection direction) {
|
||||
return PipeIconProvider.TYPE.PipePowerSandstone.ordinal();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean canPipeConnect(TileEntity tile, ForgeDirection side) {
|
||||
return (tile instanceof TileGenericPipe) && super.canPipeConnect(tile, side);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean ignoreConnectionOverrides(ForgeDirection with) {
|
||||
return true;
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue