Overwriting a method from extended class?

Does it possible to overwriting a method from extended class?
like i have a class called A that extends B
and i want to overwrite the method called _A from class B
but A doesn’t have overriding that method

codes like:
public class B {
public void _A() {
}
}

public class A extends B {

}

@Mixin(A.class)
public class MixinA {
@Overwrite //seems this doesn’t works
public void _A() {
}
}

im a noobie on sponge, please help and thanks!

Try making your mixin extend B directly. Then remove @Overwrite from the method. (If you want, you can add @Override instead, but it’s completely optional.)

@Mixin(A.class)
public class MixinA extends B {
    @Override // optional
    public void _A() {
    }
}