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

1.21.1 porting chore: ResourceLocation/Key #5108

Merged

Conversation

Partonetrain
Copy link
Collaborator

ResourceLocation/Key chore

  • new ResourceLocation(Quark.MOD_ID -> Quark.asResource(
  • new ResourceLocation(string) -> ResourceLocation.Parse(, EXCEPT when it's a vanilla asset (in which case ResourceLocation.withDefaultNamespace is used) and EXCEPT in client model ItemProperties code, but the latter may need a second pass because I'm not familiar with the convention
  • getDefaultLootTable now returns ResourceKey
  • new TagKey( -> Quark.asTagKey(, this new method technically makes modules classload Registries but that is probably fine :clueless:

I started this while BrokenK3yboard was working hence the merge conflict

- new ResourceLocation(Quark.MOD_ID -> Quark.asResource(
- new ResourceLocation(string) -> ResourceLocation.Parse(, EXCEPT when it's a vanilla asset and EXCEPT in client model ItemProperties code, but the latter may need a second pass because I'm not familiar with the convention
- getDefaultLootTable now returns ResourceKey<LootTable>
- new TagKey( -> Quark.asTagKey(, this new method technically makes modules classload Registries but that is probably fine :clueless:
@BrokenK3yboard BrokenK3yboard changed the base branch from master to 1.21.0/dev January 5, 2025 06:19
@BrokenK3yboard BrokenK3yboard merged commit a9afa33 into VazkiiMods:1.21.0/dev Jan 5, 2025
1 check failed
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