#[Solved] I can't solve the Ambiguous reference to method error...

11 messages · Page 1 of 1 (latest)

rugged kiln
#

There was a mixin for getArmPose of the net.minecraft.client.render.entity.PlayerEntityRenderer class, but the number of methods with the same name increased due to an update to Minecraft, so the mixin could no longer be performed. The IDE I use does not have a function to obtain the signature, so I do not know the correct signature, and even when I entered the proposed signature, it did not work.

Here's the code that didn't work either:

public class ArmPoseMixin {
    @Inject(method = "getArmPose", at = @At("TAIL"), cancellable = true)
public class ArmPoseMixin {
    @Inject(method = "getArmPose(Lnet/minecraft/client/network/AbstractClientPlayerEntity;Lnet/minecraft/util/Hand;)Lnet/minecraft/client/model/ModelPart$ArmPose;", at = @At("TAIL"), cancellable = true)
untold forge
#

The method with that signature doesn't exist. I'd recommend you figure out again what you want to do with your mixin

rugged kiln
#

This mixin is absolutely necessary. At least, it was essential up until 1.21.2.
Does this mean that I can't mixin this method in the current version?

untold forge
#

Entity rendering was reworked to use separate data objects. I'm suggesting that instead of trying to fix your mixin, you instead rewrite it to work with the new code

rugged kiln
rugged kiln
#

I'm not doing it now because it's not necessary, but if I want to add a new UseAction, for example, I'll need a Mixin for getArmPose after all, right? Are you saying that's also impossible?

rugged kiln
#

[Solved] I can't solve the Ambiguous reference to method error...

untold forge
rugged kiln
#

The error was resolved, so I marked the thread as resolved, but I honestly don't understand what you mean. I understand that it's nearly impossible (not that it's impossible) to add UseAction.

"There was a rework of Entity rendering, so don't use Mixin, use the new code." I don't understand this. All I understand is that the new getArmPose method doesn't have player information, so you can't get information about the item you're holding. Does this mean that you can no longer change ArmPose at any time?

#

I understand this is a niche demand - many players don't care about how items are held in third person.

untold forge
#

Are you sure that render state doesn't have the hand items?