Skip to content

Generics widening - #68

Draft
XFactHD wants to merge 1 commit into
neoforged:mainfrom
XFactHD:generics_widener
Draft

XFactHD wants to merge 1 commit into
neoforged:mainfrom
XFactHD:generics_widener

Conversation

@XFactHD

@XFactHD XFactHD commented Oct 20, 2026

Copy link
Copy Markdown
Member

This PR implements support for widening generic types on method parameters and return types.
The two primary use cases that come to mind for this are SpawnPlacement.SpawnPredicate methods (i.e. Armadillo.checkArmadilloSpawnRules()) and the now-removed block codecs.

The initial implementation only covers the parameter part of this, is extremely dirty and merely serves as a proof of concept.

@neoforged-pr-publishing

Copy link
Copy Markdown
  • Publish PR to GitHub Packages

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