mirror of
https://github.com/Jozufozu/Flywheel.git
synced 2024-12-27 07:26:48 +01:00
Shadows causing trouble? No more shadows
This commit is contained in:
parent
b1f34389b7
commit
bdcf034f7f
1 changed files with 5 additions and 19 deletions
|
@ -9,48 +9,34 @@ import com.mojang.math.Quaternion;
|
||||||
|
|
||||||
@Mixin(PoseStack.class)
|
@Mixin(PoseStack.class)
|
||||||
public abstract class PoseStackMixin implements TransformStack {
|
public abstract class PoseStackMixin implements TransformStack {
|
||||||
@Shadow
|
|
||||||
public abstract void mulPose(Quaternion pQuaternion);
|
|
||||||
|
|
||||||
@Shadow
|
|
||||||
public abstract void shadow$scale(float factorX, float factorY, float factorZ);
|
|
||||||
|
|
||||||
@Shadow
|
|
||||||
public abstract void shadow$pushPose();
|
|
||||||
|
|
||||||
@Shadow
|
|
||||||
public abstract void shadow$popPose();
|
|
||||||
|
|
||||||
@Shadow
|
|
||||||
public abstract void shadow$translate(double x, double y, double z);
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public TransformStack multiply(Quaternion quaternion) {
|
public TransformStack multiply(Quaternion quaternion) {
|
||||||
mulPose(quaternion);
|
((PoseStack)(Object) this).mulPose(quaternion);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public TransformStack scale(float factorX, float factorY, float factorZ) {
|
public TransformStack scale(float factorX, float factorY, float factorZ) {
|
||||||
shadow$scale(factorX, factorY, factorZ);
|
((PoseStack)(Object) this).scale(factorX, factorY, factorZ);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public TransformStack pushPose() {
|
public TransformStack pushPose() {
|
||||||
shadow$pushPose();
|
((PoseStack)(Object) this).pushPose();
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public TransformStack popPose() {
|
public TransformStack popPose() {
|
||||||
shadow$popPose();
|
((PoseStack)(Object) this).popPose();
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public TransformStack translate(double x, double y, double z) {
|
public TransformStack translate(double x, double y, double z) {
|
||||||
shadow$translate(x, y, z);
|
((PoseStack)(Object) this).translate(x, y, z);
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue