Should use the new Iris API in Iris 1.1.4, instead of depending on Iris internals
coderbot16 opened this issue ยท 3 comments
The Iris API isn't distributed separately yet, but it has a much better stability guarantee than reflecting into internal Iris classes. In the future we plan to do reorganization and repackaging which might break things in your mod.
The following two methods should be sufficient: https://github.com/IrisShaders/Iris/blob/41721a53dde15698bf03c6763475c62978105e7c/src/main/java/net/irisshaders/iris/api/v0/IrisApi.java#L64-L90
Ideally, this change could be backported to 1.16.5 and 1.17.1, but I understand if you do not wish to do that.
Great, thanks! I'll make sure to tag future versions of Iris to run with the latest versions of this mod for each MC version to avoid any potential issues with versions mismatches once we do choose to do any internal refactoring / repackaging.