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

ManasCore port to 1.21 #36

Merged
merged 12 commits into from
Aug 31, 2024
Merged

ManasCore port to 1.21 #36

merged 12 commits into from
Aug 31, 2024

Conversation

maltesermailo
Copy link

Description

This ports ManasCore to 1.21
With this update, a lot of stuff got changed, especially how ResourceLocations are created and the way you access Registry Entries.
Furthermore, some methods have been removed and shuffled around.
Look at the commits for further explanations. Each commit has a detailed description of why it changed.

List of changes

  • See commits, they have detailed descriptions

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Code Refactoring (non-breaking change which improved the Code Quality)
  • Breaking Code Refactoring (breaking change which improved the Code Quality)
  • Documentation update (JavaDoc or Markdown change)

Most significant change is the usage of Holder for Attributes and ResourceLocation instead of UUIDs
TODO: Find better way to get Holder instance of Attribute. Currently, I can't cast the RangedAttribute Holder to an Attribute Holder, because they're not the same type due to generics. Therefore, I created a Direct Holder.
TODO: Find better way to get Holder instance of Attribute. Currently, I can't cast the RangedAttribute Holder to an Attribute Holder, because they're not the same type due to generics. Therefore, I created a Direct Holder.
…methods.

For ResourceLocation, the new ResourceLocation#fromNamespaceAndPath
For Attributes, the Holder#direct method
TODO: Find out what happened to EnchanementHelper#getSweepingDamageRatio
@CLAassistant
Copy link

CLAassistant commented Aug 14, 2024

CLA assistant check
All committers have signed the CLA.

Copy link
Collaborator

@minheragon12345 minheragon12345 left a comment

Choose a reason for hiding this comment

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

Cool xD

@Charismara Charismara merged commit 5ccd813 into 1.21/master Aug 31, 2024
1 of 2 checks passed
@Charismara Charismara deleted the 1.21/dev branch August 31, 2024 09:28
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.

4 participants