Skip to content

Commit

Permalink
Add huge pipes
Browse files Browse the repository at this point in the history
  • Loading branch information
TechLord22 committed Jun 27, 2021
1 parent f30115d commit 6124c9f
Show file tree
Hide file tree
Showing 21 changed files with 24 additions and 41 deletions.
20 changes: 10 additions & 10 deletions src/main/java/gregtech/api/unification/material/Materials.java
Original file line number Diff line number Diff line change
Expand Up @@ -883,16 +883,16 @@ public static void register() {
NaquadahAlloy.setCableProperties(GTValues.V[8], 2, 4);
Duranium.setCableProperties(GTValues.V[8], 1, 8);

Copper.setFluidPipeProperties(25, 1000, true);
Bronze.setFluidPipeProperties(35, 2000, true);
Steel.setFluidPipeProperties(50, 2500, true);
StainlessSteel.setFluidPipeProperties(100, 3000, true);
Titanium.setFluidPipeProperties(200, 5000, true);
TungstenSteel.setFluidPipeProperties(300, 7500, true);
Ultimet.setFluidPipeProperties(12000, 1500, true);

Polyethylene.setFluidPipeProperties(200, 350, true);
Polytetrafluoroethylene.setFluidPipeProperties(200, 600, true);
Copper.setFluidPipeProperties(1000, 10, true);
Bronze.setFluidPipeProperties(2000, 20, true);
Steel.setFluidPipeProperties(2500, 40, true);
StainlessSteel.setFluidPipeProperties(3000, 60, true);
Titanium.setFluidPipeProperties(5000, 80, true);
TungstenSteel.setFluidPipeProperties(7500, 100, true);
Ultimet.setFluidPipeProperties(1500, 12000, true);

Polyethylene.setFluidPipeProperties(350, 60, true);
Polytetrafluoroethylene.setFluidPipeProperties(600, 80, true);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ public void setCableProperties(long voltage, int baseAmperage, int lossPerBlock)
}

@ZenMethod
public void setFluidPipeProperties(int throughput, int maxTemperature, boolean gasProof) {
public void setFluidPipeProperties(int maxTemperature, int throughput, boolean gasProof) {
this.fluidPipeProperties = new FluidPipeProperties(maxTemperature, throughput, gasProof);
}

Expand Down
3 changes: 2 additions & 1 deletion src/main/java/gregtech/api/unification/ore/OrePrefix.java
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,8 @@ public enum OrePrefix {
pipeTiny("Tiny Pipes", M / 2, null, MaterialIconType.pipeTiny, ENABLE_UNIFICATION, null),
pipeSmall("Small Pipes", M, null, MaterialIconType.pipeSmall, ENABLE_UNIFICATION, null),
pipeMedium("Medium Pipes", M * 3, null, MaterialIconType.pipeMedium, ENABLE_UNIFICATION, null),
pipeLarge("Large pipes", M * 6, null, MaterialIconType.pipeLarge, ENABLE_UNIFICATION, null),
pipeLarge("Large Pipes", M * 6, null, MaterialIconType.pipeLarge, ENABLE_UNIFICATION, null),
pipeHuge("Huge Pipes", M * 12, null, MaterialIconType.pipeHuge, ENABLE_UNIFICATION, null),

wireGtHex("Hex wires", M * 8, null, null, ENABLE_UNIFICATION, null),
wireGtOctal("Octal wires", M * 4, null, null, ENABLE_UNIFICATION, null),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,11 @@

public enum FluidPipeType implements IMaterialPipeType<FluidPipeProperties> {

TINY_OPAQUE("tiny", 0.2f, 1, OrePrefix.pipeTiny, true),
SMALL_OPAQUE("small", 0.4f, 2, OrePrefix.pipeSmall, true),
MEDIUM_OPAQUE("medium", 0.6f, 4, OrePrefix.pipeMedium, true),
LARGE_OPAQUE("large", 0.8f, 8, OrePrefix.pipeLarge, true);
TINY_OPAQUE("tiny", 0.25f, 1, OrePrefix.pipeTiny, true),
SMALL_OPAQUE("small", 0.375f, 2, OrePrefix.pipeSmall, true),
MEDIUM_OPAQUE("medium", 0.5f, 6, OrePrefix.pipeMedium, true),
LARGE_OPAQUE("large", 0.75f, 12, OrePrefix.pipeLarge, true),
HUGE_OPAQUE("huge", 0.875f, 24, OrePrefix.pipeHuge, true);

public final String name;
public final float thickness;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public ItemBlockFluidPipe(BlockFluidPipe block) {
@SideOnly(Side.CLIENT)
public void addInformation(ItemStack stack, @Nullable World worldIn, List<String> tooltip, ITooltipFlag flagIn) {
FluidPipeProperties pipeProperties = blockPipe.createItemProperties(stack);
tooltip.add(I18n.format("gregtech.fluid_pipe.throughput", pipeProperties.throughput));
tooltip.add(I18n.format("gregtech.fluid_pipe.throughput", pipeProperties.throughput * 20));
tooltip.add(I18n.format("gregtech.fluid_pipe.max_temperature", pipeProperties.maxFluidTemperature));
if (!pipeProperties.gasProof) tooltip.add(I18n.format("gregtech.fluid_pipe.non_gas_proof"));
}
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/assets/gregtech/lang/en_us.lang
Original file line number Diff line number Diff line change
Expand Up @@ -3554,8 +3554,8 @@ gregtech.cable.voltage=Voltage: §a%,d §7(§a%s§7)
gregtech.cable.amperage=Amperage: §e%,d
gregtech.cable.loss_per_block=Loss per block: §c%,d

gregtech.fluid_pipe.throughput=Transfer: §e%,d mb/t
gregtech.fluid_pipe.max_temperature=Max Temperature: §c%,dK
gregtech.fluid_pipe.throughput=Transfer Rate: §9%,d mb/s
gregtech.fluid_pipe.max_temperature=Temperature Limit: §c%,dK
gregtech.fluid_pipe.non_gas_proof=Can't transfer gases.

gregtech.multiblock.work_paused=Work Paused.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,26 +1,7 @@
{
"parent": "item/generated",
"ambientocclusion": false,
"textures": {
"layer0": "gregtech:items/material_sets/dull/ingot_hot",
"layer1": "gregtech:items/material_sets/dull/ingot_hot_overlay"
},
"elements": [
{
"from": [ 0, 0.26, 0 ],
"to": [ 16, 0.26, 16 ],
"shade": false,
"faces": {
"up": { "uv": [ 0, 0, 16, 16 ], "texture": "#layer0", "tintindex": 0 }
}
},
{
"from": [ 0, 0.26, 0 ],
"to": [ 16, 0.26, 16 ],
"shade": false,
"faces": {
"up": { "uv": [ 0, 0, 16, 16 ], "texture": "#layer1" }
}
}
]
"layer0": "gregtech:items/material_sets/dull/ingot_hot",
"layer1": "gregtech:items/material_sets/dull/ingot_hot_overlay"
}
}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 6124c9f

Please sign in to comment.