Skip to content

Commit

Permalink
ok
Browse files Browse the repository at this point in the history
  • Loading branch information
KrLite committed May 1, 2024
1 parent 9e624f2 commit 83b058e
Showing 1 changed file with 26 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.Redirect;
import org.spongepowered.asm.mixin.injection.Slice;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;

@Mixin(InGameHud.class)
Expand Down Expand Up @@ -99,6 +100,13 @@ private void renderMountHealthPost(DrawContext context, CallbackInfo ci) {
at = @At(
value = "INVOKE",
target = "Lnet/minecraft/client/gui/DrawContext;drawTexture(Lnet/minecraft/util/Identifier;IIIIII)V"
),
slice = @Slice(
to = @At(
value = "INVOKE",
target = "Lnet/minecraft/client/gui/DrawContext;drawTexture(Lnet/minecraft/util/Identifier;IIIIII)V",
ordinal = 2
)
)
)
private void renderMountJumpBarBackgroundPre(JumpingMount mount, DrawContext context, int x, CallbackInfo ci) {
Expand All @@ -114,6 +122,13 @@ private void renderMountJumpBarBackgroundPre(JumpingMount mount, DrawContext con
value = "INVOKE",
target = "Lnet/minecraft/client/gui/DrawContext;drawTexture(Lnet/minecraft/util/Identifier;IIIIII)V",
shift = At.Shift.AFTER
),
slice = @Slice(
to = @At(
value = "INVOKE",
target = "Lnet/minecraft/client/gui/DrawContext;drawTexture(Lnet/minecraft/util/Identifier;IIIIII)V",
ordinal = 2
)
)
)
private void renderMountJumpBarBackgroundPost(JumpingMount mount, DrawContext context, int x, CallbackInfo ci) {
Expand All @@ -125,10 +140,11 @@ private void renderMountJumpBarBackgroundPost(JumpingMount mount, DrawContext co
method = "renderMountJumpBar",
at = @At(
value = "INVOKE",
target = "Lnet/minecraft/client/gui/DrawContext;drawTexture(Lnet/minecraft/util/Identifier;IIIIII)V"
target = "Lnet/minecraft/client/gui/DrawContext;drawTexture(Lnet/minecraft/util/Identifier;IIIIII)V",
ordinal = 2
)
)
private void renderMountJumpBarPre(JumpingMount mount, DrawContext context, int x, CallbackInfo ci) {
private void renderMountJumpBarProgressPre(JumpingMount mount, DrawContext context, int x, CallbackInfo ci) {
context.getMatrices().push();
Verticality.verticallyShiftBarPre(context, false);

Expand All @@ -140,10 +156,11 @@ private void renderMountJumpBarPre(JumpingMount mount, DrawContext context, int
at = @At(
value = "INVOKE",
target = "Lnet/minecraft/client/gui/DrawContext;drawTexture(Lnet/minecraft/util/Identifier;IIIIII)V",
ordinal = 2,
shift = At.Shift.AFTER
)
)
private void renderMountJumpBarPost(JumpingMount mount, DrawContext context, int x, CallbackInfo ci) {
private void renderMountJumpBarProgressPost(JumpingMount mount, DrawContext context, int x, CallbackInfo ci) {
Verticality.verticallyShiftBarPost(context);
context.getMatrices().pop();
}
Expand All @@ -152,7 +169,8 @@ private void renderMountJumpBarPost(JumpingMount mount, DrawContext context, int
method = "renderExperienceBar",
at = @At(
value = "INVOKE",
target = "Lnet/minecraft/client/gui/DrawContext;drawTexture(Lnet/minecraft/util/Identifier;IIIIII)V"
target = "Lnet/minecraft/client/gui/DrawContext;drawTexture(Lnet/minecraft/util/Identifier;IIIIII)V",
ordinal = 0
)
)
private void renderExperienceBarBackgroundPre(DrawContext context, int x, CallbackInfo ci) {
Expand All @@ -167,6 +185,7 @@ private void renderExperienceBarBackgroundPre(DrawContext context, int x, Callba
at = @At(
value = "INVOKE",
target = "Lnet/minecraft/client/gui/DrawContext;drawTexture(Lnet/minecraft/util/Identifier;IIIIII)V",
ordinal = 0,
shift = At.Shift.AFTER
)
)
Expand All @@ -179,7 +198,8 @@ private void renderExperienceBarBackgroundPost(DrawContext context, int x, Callb
method = "renderExperienceBar",
at = @At(
value = "INVOKE",
target = "Lnet/minecraft/client/gui/DrawContext;drawTexture(Lnet/minecraft/util/Identifier;IIIIII)V"
target = "Lnet/minecraft/client/gui/DrawContext;drawTexture(Lnet/minecraft/util/Identifier;IIIIII)V",
ordinal = 1
)
)
private void renderExperienceBarProgressPre(DrawContext context, int x, CallbackInfo ci) {
Expand All @@ -194,6 +214,7 @@ private void renderExperienceBarProgressPre(DrawContext context, int x, Callback
at = @At(
value = "INVOKE",
target = "Lnet/minecraft/client/gui/DrawContext;drawTexture(Lnet/minecraft/util/Identifier;IIIIII)V",
ordinal = 1,
shift = At.Shift.AFTER
)
)
Expand Down

0 comments on commit 83b058e

Please # to comment.