Joseph Burton

Results 357 comments of Joseph Burton

Well yes and the feature request is to make that happen. If it was already a feature then what do you think this issue is about?

This issue is now defunct for Fabric now that interfaces will also be injected at runtime. However, it is still relevant for NeoForge

> using `@WrapOperation` is destructive, it makes a mess in the bytecode and (it allocates objects?). But `@ModifyExpressionValue` is exactly what you want, so just use that.

> Doesn't work for PUT You are not modifying PUT, you are modifying `someEpression` or `someOtherExpression` in your original example.

```java @Definition(id = "someField", field = "LSomeClass;someField:LFieldType;") @Expression("this.someField = @(?)") @ModifyExpressionValue(method = "containingMethod", at = @At("MIXINEXTRAS:EXPRESSION")) private FieldType modifyFieldAssignment(FieldType originalValue) { return newValue; } ``` Do you have the MinecraftDev...

> but I can't imagine any drastic changes being made between those two versions. Lol. You underestimate how many changes Mojang makes behind the scenes. There is no `SwordItem` class...