PneumaticCraft Pressure Conduits #849

Open
ferriarnus wants to merge 3 commits from ferriarnus/pressure into dev/1.21.1
ferriarnus commented 2024-10-04 16:03:09 +00:00 (Migrated from github.com)

Description

Pressure conduits for PneumaticCraft.

TODO

  • Textures
  • Tests

Breaking Changes

List any breaking changes in this section, such as: changed/removed APIs, changed or removed items/blocks or modifications to recipes and gameplay mechanics.

Checklist

  • My code follows the style guidelines of this project (.editorconfig, most IDEs will use this for you).
  • I have made corresponding changes to the documentation.
  • My changes are ready for review from a contributor.
# Description Pressure conduits for PneumaticCraft. <!-- If you're submitting a Draft PR, consider providing a TODO list using checkboxes --> # TODO - [ ] Textures - [ ] Tests # Breaking Changes List any breaking changes in this section, such as: changed/removed APIs, changed or removed items/blocks or modifications to recipes and gameplay mechanics. <!-- For drafts, fill this in as you go; if you are leaving draft, make sure these are all complete. --> # Checklist - [ ] My code follows the style guidelines of this project (.editorconfig, most IDEs will use this for you). - [ ] I have made corresponding changes to the documentation. - [ ] My changes are ready for review from a contributor. <!-- Thanks to: https://embeddedartistry.com/blog/2017/08/04/a-github-pull-request-template-for-your-projects/ for the building blocks of this template -->
Rover656 (Migrated from github.com) requested changes 2024-10-05 23:01:20 +00:00
Rover656 (Migrated from github.com) left a comment

Just a handful of code style comments. After a quick pass the conduit code looks good and I'll test it in game another day -but- I have a question about the air context. When a conduit graph is split in half, there's going to be no loss of air and they'll both become over-pressure. Is there any way we can make the air drop and balance between the two graphs?

This of course hasn't been done by the energy conduits because they just clamp the storage back down to the capacity - this might be a case where the changes I was going to propose to Graph Lib could come in handy to properly split the resource across the two contexts.

Just a handful of code style comments. After a quick pass the conduit code looks good and I'll test it in game another day -but- I have a question about the air context. When a conduit graph is split in half, there's going to be no loss of air and they'll both become over-pressure. Is there any way we can make the air drop and balance between the two graphs? This of course hasn't been done by the energy conduits because they just clamp the storage back down to the capacity - this might be a case where the changes I was going to propose to Graph Lib could come in handy to properly split the resource across the two contexts.
@ -0,0 +86,4 @@
}
if (otherConduit.value() instanceof PressureConduit other) {
Rover656 (Migrated from github.com) commented 2024-10-05 22:56:15 +00:00

Could you prune this blank space please :)

Could you prune this blank space please :)
@ -0,0 +16,4 @@
import java.util.List;
public record PressureConduitStorage(PressureTier tier, ConduitNode node) implements IAirHandlerMachine {
Rover656 (Migrated from github.com) commented 2024-10-05 22:57:04 +00:00

Another line here please (auto-formatting PR soon ™️)

Another line here please (auto-formatting PR soon :tm:)
@ -108,1 +80,3 @@
return !isMultiFluid();
public boolean canConnectTo(ConduitNode selfNode, ConduitNode otherNode) {
FluidConduitData selfData = selfNode.getOrCreateData(ConduitTypes.Data.FLUID.get());
FluidConduitData otherData = otherNode.getOrCreateData(ConduitTypes.Data.FLUID.get());
Rover656 (Migrated from github.com) commented 2024-10-05 22:59:09 +00:00

Could we lift the fluid conduit fixes into a different PR, currently fluid conduits are completely borked and it'd be good to handle these separately 😅

Could we lift the fluid conduit fixes into a different PR, currently fluid conduits are completely borked and it'd be good to handle these separately 😅
@ -5,3 +5,3 @@
# Minecraft and NeoForge
minecraftVersion=1.21.1
neoForgeVersion=21.1.181
neoForgeVersion=21.1.60
Rover656 (Migrated from github.com) commented 2024-10-05 22:58:31 +00:00

Did we bump because .60 is required for Ender IO, or for Pneumaticraft?

Did we bump because .60 is required for Ender IO, or for Pneumaticraft?
This pull request has changes conflicting with the target branch.
  • buildSrc/shared.gradle.kts
  • enderio-conduits-modded/build.gradle.kts
  • enderio-conduits-modded/src/main/java/com/enderio/modconduits/ModdedConduits.java
  • enderio-modded-conduits/src/generated/resources/assets/enderio/lang/en_us.json
  • enderio-modded-conduits/src/generated/resources/data/enderio/advancement/recipes/building_blocks/pnc_advanced_pressure_tube.json
  • enderio-modded-conduits/src/generated/resources/data/enderio/advancement/recipes/building_blocks/pnc_pressure_tube.json
  • enderio-modded-conduits/src/generated/resources/data/enderio/advancement/recipes/building_blocks/pnc_reinforced_pressure_tube.json
  • enderio-modded-conduits/src/generated/resources/data/enderio/enderio/conduit/advanced_pressure.json
  • enderio-modded-conduits/src/generated/resources/data/enderio/enderio/conduit/basic_pressure.json
  • enderio-modded-conduits/src/generated/resources/data/enderio/enderio/conduit/reinforced_pressure.json
  • enderio-modded-conduits/src/generated/resources/data/enderio/recipe/pnc_advanced_pressure_tube.json
  • enderio-modded-conduits/src/generated/resources/data/enderio/recipe/pnc_pressure_tube.json
  • enderio-modded-conduits/src/generated/resources/data/enderio/recipe/pnc_reinforced_pressure_tube.json
  • enderio-modded-conduits/src/main/resources/assets/enderio/textures/block/conduit/advanced_pressure.png
  • enderio-modded-conduits/src/main/resources/assets/enderio/textures/block/conduit/basic_pressure.png
  • enderio-modded-conduits/src/main/resources/assets/enderio/textures/block/conduit/reinforced_pressure.png
  • enderio-modded-conduits/src/main/resources/assets/enderio/textures/gui/sprites/conduit_icon/advanced_pressure.png
  • enderio-modded-conduits/src/main/resources/assets/enderio/textures/gui/sprites/conduit_icon/basic_pressure.png
  • enderio-modded-conduits/src/main/resources/assets/enderio/textures/gui/sprites/conduit_icon/reinforced_pressure.png
  • gradle.properties
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin ferriarnus/pressure:ferriarnus/pressure
git switch ferriarnus/pressure

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch dev/1.21.1
git merge --no-ff ferriarnus/pressure
git switch ferriarnus/pressure
git rebase dev/1.21.1
git switch dev/1.21.1
git merge --ff-only ferriarnus/pressure
git switch ferriarnus/pressure
git rebase dev/1.21.1
git switch dev/1.21.1
git merge --no-ff ferriarnus/pressure
git switch dev/1.21.1
git merge --squash ferriarnus/pressure
git switch dev/1.21.1
git merge --ff-only ferriarnus/pressure
git switch dev/1.21.1
git merge ferriarnus/pressure
git push origin dev/1.21.1
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: Team-EnderIO/EnderIO#849
No description provided.