Skip to content

Conversation

@8s2
Copy link
Contributor

@8s2 8s2 commented Oct 9, 2025

After working with FabricRenderState for a while I found that a getOrDefault equivalent would be quite useful, especially when working with primitive types, since I often end up doing a bunch of null checks on wrapper objects.

@modmuss50 modmuss50 added enhancement New feature or request status: last call If you care, make yourself heard right away! small change status: merge me please Pull requests that are ready to merge labels Oct 9, 2025
@modmuss50 modmuss50 merged commit 19a99b0 into FabricMC:1.21.10 Oct 18, 2025
4 checks passed
modmuss50 pushed a commit that referenced this pull request Oct 18, 2025
ekulxam pushed a commit to ekulxam/fapi that referenced this pull request Nov 15, 2025
modmuss50 pushed a commit that referenced this pull request Nov 16, 2025
* Add `FabricRenderState`

* Add getDataOrDefault method to FabricRenderState (#4917)

* spotlessApply and check

---------

Co-authored-by: EightSidedSquare <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request small change status: last call If you care, make yourself heard right away! status: merge me please Pull requests that are ready to merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants