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.2 Port #321

Closed
wants to merge 21 commits into from
Closed

Conversation

Dragon-Seeker
Copy link
Member

@Dragon-Seeker Dragon-Seeker commented Oct 11, 2024

Contains breaking changes for various aspects of API:

Breaking Changes:

  • AutoRegistryContainer requires a rework similar to the open PR [1.21] Field Registraction Adjustments #268 combined with adjustment to use factory rather than a supplier due to the reliance that Item, Block, and EntityType now need the RegistryKey before the entries are registered
  • Other changes like passing Function to get RenderLayer and more

Other Changes:

  • Adjust Shader Impl to use vanilla and adjust loading to happen after the ShaderLoader
  • Recipe remainders required a rewrite of internal logic but should be intact
  • Toasts had a change that should be emulated correctly but unknown at this point
  • Mouse Drag and Keyboard capture injections changed but should be the same as before

I believe OwoUIDrawContext should change to allow for passing the Function to create RenderLayer to be similar to DrawContext so overall this will be marked as a draft for the time being

- Inject supplier into RegistryEntry
- MemoizedSupplier's that caches the first get call made to the supplier
- Made such abstract classes instead of interfaces to allow for direct calls to entry method on AutoRegistryContainer
- Fix MemoizedEntry name
- Move iterateAccessibleStaticFieldsAllowingMemorizedSuppliers to FieldRegistrationHandler
- Refactor folder structure
- FIx `register` method on `AutoRegistryContainer` being unavailable due to being package private
@Dragon-Seeker Dragon-Seeker mentioned this pull request Oct 18, 2024
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.

1 participant