Package org.spongepowered.asm.mixin
Annotation Type Mutable
-
@Target({FIELD,METHOD}) @Retention(RUNTIME) public @interface MutableMutablemay only be applied toshadowedfields or on accessor methods.When applied to a field, it removes the
finalmodifier if the field has it, thus allowing to change the value of the field (mutation). There is no real benefit of usingMutableover RAS, AW or AT other than the fact that usage ofMutabledoes not differ from toolchain to toolchain (e.g. in the stianloader toolchain only RAS is acceptable, where as elsewhere RAS is not in frequent use). As such technically speaking usage ofMutableis slightly better compared to other approaches, but is not in use throughout the stianloader projects and thus may be more unstable than other annotations implemented by micromixin-transformer.