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

Make translation key of MetaItems modifiable #2259

Merged
merged 2 commits into from Jan 11, 2024

Conversation

Tictim
Copy link
Contributor

@Tictim Tictim commented Dec 6, 2023

What

This PR makes MetaItem's translation keys modifiable.

Implementation Details

Previously hardcoded metaitem.%s.name and metaitem.%s.tooltip format was used for translation keys for item name and tooltip, respectively. This PR allows MetaItem implementations to change the prefix part with MetaItem#setTranslationKey(String). The rest of the changes are nonnull annotations.

Additional Information

The missile knows where it is at all times. It knows this because it knows where it isn't. By subtracting where it is from where it isn't, or where it isn't from where it is (whichever is greater), it obtains a difference, or deviation. The guidance subsystem uses deviations to generate corrective commands to drive the missile from a position where it is to a position where it isn't, and arriving at a position where it wasn't, it now is. Consequently, the position where it is, is now the position that it wasn't, and it follows that the position that it was, is now the position that it isn't.
In the event that the position that it is in is not the position that it wasn't, the system has acquired a variation, the variation being the difference between where the missile is, and where it wasn't. If variation is considered to be a significant factor, it too may be corrected by the GEA. However, the missile must also know where it was.
The missile guidance computer scenario works as follows. Because a variation has modified some of the information the missile has obtained, it is not sure just where it is. However, it is sure where it isn't, within reason, and it knows where it was. It now subtracts where it should be from where it wasn't, or vice-versa, and by differentiating this from the algebraic sum of where it shouldn't be, and where it was, it is able to obtain the deviation and its variation, which is called error.

Potential Compatibility Issues

None, except for the case where an addon called setTranslationKey on their metaitem, which was pointless before.

@Tictim Tictim added the type: refactor Suggestion to refactor a section of code label Dec 6, 2023
@Tictim Tictim requested a review from a team as a code owner December 6, 2023 04:35
@TechLord22 TechLord22 merged commit d7af877 into GregTechCEu:master Jan 11, 2024
3 checks passed
serenibyss pushed a commit that referenced this pull request Jan 21, 2024
Co-authored-by: ALongStringOfNumbers <31759736+ALongStringOfNumbers@users.noreply.github.com>
serenibyss pushed a commit that referenced this pull request Jan 21, 2024
Co-authored-by: ALongStringOfNumbers <31759736+ALongStringOfNumbers@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: refactor Suggestion to refactor a section of code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants