tutorial:mixin_accessors
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
tutorial:mixin_accessors [2025/08/07 07:44] – Fix formatting earthcomputer | tutorial:mixin_accessors [2025/08/07 07:48] (current) – Add note about mutable to static accessors too, and note about javac inlining fields. earthcomputer | ||
---|---|---|---|
Line 35: | Line 35: | ||
</ | </ | ||
- | When the field is final and you need to set it, use '' | + | When the field is final and you need to set it, use '' |
===== Accessor for static fields ===== | ===== Accessor for static fields ===== | ||
Line 73: | Line 73: | ||
VanillaLayeredBiomeSourceAccessor.setBiomes(biomes); | VanillaLayeredBiomeSourceAccessor.setBiomes(biomes); | ||
</ | </ | ||
+ | |||
+ | When the field is final and you need to set it, use '' | ||
===== Invoker ===== | ===== Invoker ===== |
tutorial/mixin_accessors.txt · Last modified: 2025/08/07 07:48 by earthcomputer