Code Cleaning #165

Merged
Rover656 merged 35 commits from chore/120-cleaning into dev/1.20.1 2023-07-04 21:55:06 +00:00
Rover656 commented 2023-06-27 22:21:40 +00:00 (Migrated from github.com)

Description

This is a fairly sizeable changelist of some changes to improve code health.
I'm trying to make one commit per big change to try and make it easy to follow.

Only big breaking change here is the removal of INamedNBTSerializable. I've removed it in favor of having explicit serialized names.

Todo

  • Finish standardisation of NBT keys
  • Move some keys from EIONBTKeys to CoreNBTKeys.
  • Move slot access and inventory layout stuff to core. Leaving for later, its more entangled than I had thought.
  • Review lang values (not keys, that is a future task)

Checklist:

  • My code follows the style guidelines of this project (.editorconfig, most IDEs will use this for you)
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
# Description This is a fairly sizeable changelist of some changes to improve code health. I'm trying to make one commit per big change to try and make it easy to follow. Only big breaking change here is the removal of INamedNBTSerializable. I've removed it in favor of having explicit serialized names. # Todo <!-- Remove this section if you're submitting an already-complete PR --> - [x] Finish standardisation of NBT keys - [x] Move some keys from EIONBTKeys to CoreNBTKeys. - [x] ~~Move slot access and inventory layout stuff to core.~~ Leaving for later, its more entangled than I had thought. - [x] Review lang values (not keys, that is a future task) # Checklist: - [ ] My code follows the style guidelines of this project (.editorconfig, most IDEs will use this for you) - [ ] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have made corresponding changes to the documentation <!-- Thanks to: https://embeddedartistry.com/blog/2017/08/04/a-github-pull-request-template-for-your-projects/ for the building blocks of this template -->
ferriarnus commented 2023-06-28 06:12:38 +00:00 (Migrated from github.com)

Maybe you could also look into the "range" of machines, as right now it's not unified. All of these methods should probably be in the base machine class

Maybe you could also look into the "range" of machines, as right now it's not unified. All of these methods should probably be in the base machine class
Rover656 commented 2023-06-28 06:46:05 +00:00 (Migrated from github.com)

Maybe you could also look into the "range" of machines, as right now it's not unified. All of these methods should probably be in the base machine class

I'll take note of this as I have plans to review some machines stuff in my next PR :)

> Maybe you could also look into the "range" of machines, as right now it's not unified. All of these methods should probably be in the base machine class I'll take note of this as I have plans to review some machines stuff in my next PR :)
Rover656 commented 2023-06-28 19:36:31 +00:00 (Migrated from github.com)

Once #167 is merged, I can finish the NBT key stuff and this will be ready to merge. For now opening for initial review.

Once #167 is merged, I can finish the NBT key stuff and this will be ready to merge. For now opening for initial review.
ferriarnus (Migrated from github.com) reviewed 2023-07-03 19:29:59 +00:00
@ -73,4 +79,4 @@
* Write to NBT.
*/
public CompoundTag serializeNBT() {
CompoundTag tag = new CompoundTag();
ferriarnus (Migrated from github.com) commented 2023-07-03 19:12:44 +00:00

Why is this not in core?

Why is this not in core?
ferriarnus (Migrated from github.com) commented 2023-07-03 19:27:39 +00:00

why added here?

why added here?
ferriarnus (Migrated from github.com) commented 2023-07-03 19:27:49 +00:00

why added here?

why added here?
ferriarnus (Migrated from github.com) commented 2023-07-03 19:28:07 +00:00

why added here?

why added here?
Rover656 (Migrated from github.com) reviewed 2023-07-03 19:31:46 +00:00
@ -73,4 +79,4 @@
* Write to NBT.
*/
public CompoundTag serializeNBT() {
CompoundTag tag = new CompoundTag();
Rover656 (Migrated from github.com) commented 2023-07-03 19:31:45 +00:00

Good spot

Good spot
justliliandev (Migrated from github.com) reviewed 2023-07-04 21:53:52 +00:00
@ -18,9 +18,8 @@ forge_version_range=[47.0.19,)
# Old Parchment: mappings_channel=parchment_previous, mappings_version=yyyy.mm.dd, previous_minecraft_version=1.x.x
justliliandev (Migrated from github.com) commented 2023-07-04 20:16:40 +00:00

remove line, don't comment it out

remove line, don't comment it out
Sign in to join this conversation.
No reviewers
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#165
No description provided.