Skip to content

Commit

Permalink
Moved Up 2 Pixels like in Bedrock
Browse files Browse the repository at this point in the history
  • Loading branch information
yurisuika committed Mar 8, 2022
1 parent b822b39 commit 5ec2690
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@ org.gradle.jvmargs=-Xmx1G
# Fabric Properties
# check these on https://fabricmc.net/use
minecraft_version=1.18.2
yarn_mappings=1.18.2+build.1
yarn_mappings=1.18.2+build.2
loader_version=0.13.3

# Mod Properties
mod_version = 1.0.3
mod_version = 1.0.4
maven_group = com.yurisuika.raised
archives_base_name = raised

# Dependencies
# currently not on the main fabric site, check on the maven: https://maven.fabricmc.net/net/fabricmc/fabric-api/fabric-api
fabric_version=0.47.8+1.18.2
fabric_version=0.47.10+1.18.2
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public class InGameHudMixin {

@ModifyArg(method = "renderHotbar", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/hud/InGameHud;drawTexture(Lnet/minecraft/client/util/math/MatrixStack;IIIIII)V"), index = 2)
private int hotbarDistance(int value) {
return value - 1;
return value - 2;
}

@ModifyArg(method = "renderHotbar", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/hud/InGameHud;drawTexture(Lnet/minecraft/client/util/math/MatrixStack;IIIIII)V", ordinal = 1), index = 6)
Expand All @@ -19,37 +19,37 @@ private int selectorHeight(int value) {

@ModifyArg(method = "renderHotbar", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/hud/InGameHud;renderHotbarItem(IIFLnet/minecraft/entity/player/PlayerEntity;Lnet/minecraft/item/ItemStack;I)V"), index = 1)
private int itemDistance(int value) {
return value - 1;
return value - 2;
}

@ModifyVariable(method = "renderMountJumpBar", at = @At(value = "STORE"), ordinal = 3)
private int jumpBarDistance(int value) {
return value - 1;
return value - 2;
}

@ModifyArg(method = "renderExperienceBar", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/gui/hud/InGameHud;drawTexture(Lnet/minecraft/client/util/math/MatrixStack;IIIIII)V"), index = 2)
private int experienceBarDistance(int value) {
return value - 1;
return value - 2;
}

@ModifyArg(method = "renderExperienceBar", at = @At(value = "INVOKE", target = "Lnet/minecraft/client/font/TextRenderer;draw(Lnet/minecraft/client/util/math/MatrixStack;Ljava/lang/String;FFI)I"), index = 3)
private float xpTextDistance(float value) {
return value - 1.0F;
return value - 2.0F;
}

@ModifyVariable(method = "renderHeldItemTooltip", at = @At(value = "STORE"), ordinal = 2)
private int heldItemTooltipDistance(int value) {
return value - 1;
return value - 2;
}

@ModifyVariable(method = "renderStatusBars", at = @At(value = "STORE"), ordinal = 5)
private int statusBarsDistance(int value) {
return value - 1;
return value - 2;
}

@ModifyVariable(method = "renderMountHealth", at = @At(value = "STORE"), ordinal = 2)
private int mountHealthDistance(int value) {
return value - 1;
return value - 2;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class HUDOverlayHandlerMixin {

@Redirect(method = "onPreRender", at = @At(value = "FIELD", target = "squeek/appleskin/client/HUDOverlayHandler.foodIconsOffset:I", opcode = Opcodes.PUTFIELD))
private void modifyFoodIconsOffset(HUDOverlayHandler instance, int value) {
foodIconsOffset = FOOD_BAR_HEIGHT + 1;
foodIconsOffset = FOOD_BAR_HEIGHT + 2;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class ArmorBarRendererMixin {

@Redirect(method = "render", at = @At(value = "INVOKE", target = "net/minecraft/client/util/Window.getScaledHeight()I"))
private int modifyAddonsScaledHeight(Window instance) {
return instance.getScaledHeight() - 1;
return instance.getScaledHeight() - 2;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ private int modifyScaledHeight(Window instance) {

@Redirect(method = "renderHotbarAddons", at = @At(value = "INVOKE", target = "net/minecraft/client/util/Window.getScaledHeight()I"))
private int modifyAddonsScaledHeight(Window instance) {
return instance.getScaledHeight() - 1;
return instance.getScaledHeight() - 2;
}

}

0 comments on commit 5ec2690

Please sign in to comment.