1.21.6/7 version

This commit is contained in:
lukasabbe
2025-07-11 21:05:35 +02:00
parent b3a5c3dcbd
commit 8aabca82d3
3 changed files with 20 additions and 19 deletions
+1 -1
View File
@@ -2,6 +2,6 @@ plugins {
// see https://fabricmc.net/develop/ for new versions
id 'fabric-loom' version '1.10-SNAPSHOT' apply false
// see https://projects.neoforged.net/neoforged/moddevgradle for new versions
id 'net.neoforged.moddev' version '2.0.62-beta' apply false
id 'net.neoforged.moddev' version '2.0.97' apply false
}
@@ -19,6 +19,7 @@ import net.minecraft.tags.EnchantmentTags;
import net.minecraft.world.item.ItemStack;
import net.minecraft.world.item.enchantment.Enchantment;
import net.minecraft.world.item.enchantment.ItemEnchantments;
import org.joml.Matrix3x2fStack;
public class HudRenderer {
public static void hudRender(GuiGraphics context, Minecraft client){
@@ -38,7 +39,7 @@ public class HudRenderer {
final Integer colorValue = itemStack.getRarity().color().getColor();
if(colorValue != null){
color = colorValue;
color = colorValue + 0xFF000000;
}
float scaleFactor = ((float) BookshelfInspectorClient.config.scale /10);
@@ -78,13 +79,13 @@ public class HudRenderer {
}
}
private static void drawScaledText(GuiGraphics context, Component text, int centerX, int y, int color, Font textRenderer){
PoseStack stack = context.pose();
stack.pushPose();
stack.translate(centerX,y,0);
Matrix3x2fStack stack = context.pose();
stack.pushMatrix();
stack.translate(centerX, y);
final float scale = (float) BookshelfInspectorClient.config.scale / 10;
stack.scale(scale, scale, scale);
stack.translate(-centerX,-y,0);
stack.scale(scale, scale);
stack.translate(-centerX, -y);
context.drawCenteredString(textRenderer,text,centerX,y,color);
stack.popPose();
stack.popMatrix();
}
}
+11 -11
View File
@@ -1,28 +1,28 @@
version=2.0+1.21.5
version=2.0+1.21.6
group=com.lukasabbe.bookshelfinspector
java_version=21
# Common
minecraft_version=1.21.5
minecraft_version=1.21.6
mod_name=BookshelfInspector
mod_author=Lukasabbe
mod_id=bookshelfinspector
license=MIT
credits=
description=Inspect any book in a chiseled bookshelf.
minecraft_version_range=[1.21.5, 1.22)
minecraft_version_range=[1.21.6, 1.22)
neo_form_version=1.21.5-20250325.162830
neo_form_version=1.21.6-20250617.151856
# The version of ParchmentMC that is used, see https://parchmentmc.org/docs/getting-started#choose-a-version for new versions
parchment_minecraft=1.21.4
parchment_version=2025.03.23
parchment_minecraft=1.21.5
parchment_version=2025.06.15
# Fabric
fabric_version=0.119.5+1.21.5
fabric_loader_version=0.16.10
fabric_version=0.128.1+1.21.6
fabric_loader_version=0.16.14
# NeoForge
neoforge_version=21.5.4-beta
neoforge_version=21.6.20-beta
neoforge_loader_version_range=[4,)
# Gradle
@@ -31,5 +31,5 @@ org.gradle.daemon=false
# Global dep
YAML_snake=2.4
cloth_config=18.0.145
mod_menu=14.0.0-rc.2
cloth_config=19.0.146
mod_menu=15.0.0-beta.2