mirror of
https://github.com/lukasabbe/bookshelf-inspector.git
synced 2026-04-30 10:40:53 +00:00
1.21.6/7 version
This commit is contained in:
+1
-1
@@ -2,6 +2,6 @@ plugins {
|
|||||||
// see https://fabricmc.net/develop/ for new versions
|
// see https://fabricmc.net/develop/ for new versions
|
||||||
id 'fabric-loom' version '1.10-SNAPSHOT' apply false
|
id 'fabric-loom' version '1.10-SNAPSHOT' apply false
|
||||||
// see https://projects.neoforged.net/neoforged/moddevgradle for new versions
|
// 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.ItemStack;
|
||||||
import net.minecraft.world.item.enchantment.Enchantment;
|
import net.minecraft.world.item.enchantment.Enchantment;
|
||||||
import net.minecraft.world.item.enchantment.ItemEnchantments;
|
import net.minecraft.world.item.enchantment.ItemEnchantments;
|
||||||
|
import org.joml.Matrix3x2fStack;
|
||||||
|
|
||||||
public class HudRenderer {
|
public class HudRenderer {
|
||||||
public static void hudRender(GuiGraphics context, Minecraft client){
|
public static void hudRender(GuiGraphics context, Minecraft client){
|
||||||
@@ -38,7 +39,7 @@ public class HudRenderer {
|
|||||||
final Integer colorValue = itemStack.getRarity().color().getColor();
|
final Integer colorValue = itemStack.getRarity().color().getColor();
|
||||||
|
|
||||||
if(colorValue != null){
|
if(colorValue != null){
|
||||||
color = colorValue;
|
color = colorValue + 0xFF000000;
|
||||||
}
|
}
|
||||||
|
|
||||||
float scaleFactor = ((float) BookshelfInspectorClient.config.scale /10);
|
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){
|
private static void drawScaledText(GuiGraphics context, Component text, int centerX, int y, int color, Font textRenderer){
|
||||||
PoseStack stack = context.pose();
|
Matrix3x2fStack stack = context.pose();
|
||||||
stack.pushPose();
|
stack.pushMatrix();
|
||||||
stack.translate(centerX,y,0);
|
stack.translate(centerX, y);
|
||||||
final float scale = (float) BookshelfInspectorClient.config.scale / 10;
|
final float scale = (float) BookshelfInspectorClient.config.scale / 10;
|
||||||
stack.scale(scale, scale, scale);
|
stack.scale(scale, scale);
|
||||||
stack.translate(-centerX,-y,0);
|
stack.translate(-centerX, -y);
|
||||||
context.drawCenteredString(textRenderer,text,centerX,y,color);
|
context.drawCenteredString(textRenderer,text,centerX,y,color);
|
||||||
stack.popPose();
|
stack.popMatrix();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
+11
-11
@@ -1,28 +1,28 @@
|
|||||||
version=2.0+1.21.5
|
version=2.0+1.21.6
|
||||||
group=com.lukasabbe.bookshelfinspector
|
group=com.lukasabbe.bookshelfinspector
|
||||||
java_version=21
|
java_version=21
|
||||||
|
|
||||||
# Common
|
# Common
|
||||||
minecraft_version=1.21.5
|
minecraft_version=1.21.6
|
||||||
mod_name=BookshelfInspector
|
mod_name=BookshelfInspector
|
||||||
mod_author=Lukasabbe
|
mod_author=Lukasabbe
|
||||||
mod_id=bookshelfinspector
|
mod_id=bookshelfinspector
|
||||||
license=MIT
|
license=MIT
|
||||||
credits=
|
credits=
|
||||||
description=Inspect any book in a chiseled bookshelf.
|
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
|
# 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_minecraft=1.21.5
|
||||||
parchment_version=2025.03.23
|
parchment_version=2025.06.15
|
||||||
|
|
||||||
# Fabric
|
# Fabric
|
||||||
fabric_version=0.119.5+1.21.5
|
fabric_version=0.128.1+1.21.6
|
||||||
fabric_loader_version=0.16.10
|
fabric_loader_version=0.16.14
|
||||||
|
|
||||||
# NeoForge
|
# NeoForge
|
||||||
neoforge_version=21.5.4-beta
|
neoforge_version=21.6.20-beta
|
||||||
neoforge_loader_version_range=[4,)
|
neoforge_loader_version_range=[4,)
|
||||||
|
|
||||||
# Gradle
|
# Gradle
|
||||||
@@ -31,5 +31,5 @@ org.gradle.daemon=false
|
|||||||
|
|
||||||
# Global dep
|
# Global dep
|
||||||
YAML_snake=2.4
|
YAML_snake=2.4
|
||||||
cloth_config=18.0.145
|
cloth_config=19.0.146
|
||||||
mod_menu=14.0.0-rc.2
|
mod_menu=15.0.0-beta.2
|
||||||
Reference in New Issue
Block a user