Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor Steam Input Bus to extend MTEHatchInputBus #3642

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

purebluez
Copy link
Contributor

Closes GTNewHorizons/GT-New-Horizons-Modpack#18333

The Steam Input Bus currently extends MTEHatch instead of MTEHatchInputBus. Moving to MTEHatchInputBus gave it the following "new" features:

  • Ghost circuit support
  • Toggleable input sorting
  • Toggleable one stack limit for automation

The file and its usages have also been renamed to 'MTEHatchSteamBusInput' from 'MteHatchSteamBusInput', since it conflicted with the existing standard for MTEs.

Here is a video showcasing the new features:
https://github.com/user-attachments/assets/bafe3f34-2db2-41d5-9f79-509f2d6a08d3

@serenibyss serenibyss added enhancement Improve an existing mechanic. Please explain the change with a before/after comparison. refactor For PRs rewritting a part of the code to have a nicer code overall. labels Dec 12, 2024
Copy link
Member

@serenibyss serenibyss left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What about refactoring steam output bus and steam input hatch, if they are not already extending the appropriate class?

@chochem
Copy link
Member

chochem commented Dec 12, 2024

wouldnt that mean it will work with non-steam multiblocks?

public String[] getDescription() {
return new String[] { "Item Input for Steam Multiblocks",
"Shift + right click with screwdriver to toggle automatic item shuffling", "Capacity: 4 stacks",
"Does not work with non-steam multiblocks", GTPPCore.GT_Tooltip.get() };
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sorry, should have put the comment here: wouldnt this change mean it will work with non-steam multiblocks?

@chochem chochem added the Affects Balance Change affecting balance. Requires admin approval before merging. label Dec 12, 2024
@purebluez
Copy link
Contributor Author

wouldnt that mean it will work with non-steam multiblocks?

sorry, i will fix this when I can. didn't realize that would happen

@chochem
Copy link
Member

chochem commented Dec 12, 2024

ok but then that has wider implications. would just make this a sneaky cheaper LV input bus.

maybe there is some better way to do what you want?

@purebluez
Copy link
Contributor Author

ok but then that has wider implications. would just make this a sneaky cheaper LV input bus.

maybe there is some better way to do what you want?

i meant limiting it to only steam multis, not changing to the tooltip to reflect how it works now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Affects Balance Change affecting balance. Requires admin approval before merging. enhancement Improve an existing mechanic. Please explain the change with a before/after comparison. refactor For PRs rewritting a part of the code to have a nicer code overall.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[2.7.0] Steam Input Bus needs a ghost circuit
3 participants