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

Auto eject round robin #8219

Draft
wants to merge 2 commits into
base: 1.21.x
Choose a base branch
from
Draft

Auto eject round robin #8219

wants to merge 2 commits into from

Conversation

thiakil
Copy link
Member

@thiakil thiakil commented Aug 28, 2024

Changes proposed in this pull request:

Gives machines with a Transporter config the ability to do round robin auto-eject like a logistical sorter

Todo

  • Rejig the GUI to have both Strict Input and RR be the new on/off buttons

@@ -403,6 +405,14 @@ public <BE extends BlockEntity & IAdvancedTransportEjector> TransitResponse inse
return insert(outputter, outputterPos, request, color, doEmit, min);
}

public TransitResponse insertMaybeRR(@NotNull TileEntityConfigurableMachine outputter, BlockPos outputterPos, TransitRequest request, @Nullable EnumColor color, boolean doEmit, int min) {
Copy link
Member

Choose a reason for hiding this comment

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

Instead of duplicating methods like this, would it maybe make more sense to have TileEntityConfigurableMachine just implement IAdvancedTransportEjector and wrap the calls to the implementation on TileComponentEjector?

Copy link
Member Author

Choose a reason for hiding this comment

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

Main reason I didn't is that it avoids the custom send home methods being needed

But that could be implemented

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants