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

Add craft methods to get the block amount of a craft #678

Closed
Intybyte opened this issue Aug 1, 2024 · 1 comment · Fixed by #700
Closed

Add craft methods to get the block amount of a craft #678

Intybyte opened this issue Aug 1, 2024 · 1 comment · Fixed by #700

Comments

@Intybyte
Copy link
Contributor

Intybyte commented Aug 1, 2024

Describe the solution you'd like
A way to get informations about the amount of blocks in a craft, for instance:

Block Amount
Move Block Amount
Flyblock Amount

This might be useful for addons, a simple use might be getting the Block Amount on Pilot and then using that amount to calculate the amount of blocks left on the craft, or if there are few moveblocks on the craft while piloting it.

@TylerS1066
Copy link
Contributor

TylerS1066 commented Aug 3, 2024

Block Amount
This one already exists: Craft.getDataTag(Craft.MATERIALS).

The other two would be a good idea, and would be able to combine the StatusSign calculation with the official calculations caching their value in StatusManager. My initial thought is that we should have a Map<RequiredBlockEntry, Integer> as Craft.MOVE_BLOCKS and Craft.FLY_BLOCKS.

@TylerS1066 TylerS1066 linked a pull request Aug 25, 2024 that will close this issue
4 tasks
@github-project-automation github-project-automation bot moved this from Ready for Work to Resolved in Issue Triage Aug 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Archived in project
Development

Successfully merging a pull request may close this issue.

2 participants