Merge pull request #29 from lukasabbe/1.21.11

1.21.11
This commit is contained in:
Lukas
2025-12-14 18:16:18 +01:00
committed by GitHub
7 changed files with 24 additions and 25 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
plugins { plugins {
// see https://fabricmc.net/develop/ for new versions // see https://fabricmc.net/develop/ for new versions
id 'fabric-loom' version '1.11-SNAPSHOT' apply false id 'fabric-loom' version '1.14-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.112' apply false id 'net.neoforged.moddev' version '2.0.112' apply false
} }
@@ -1,6 +1,6 @@
package com.lukasabbe.bookshelfinspector; package com.lukasabbe.bookshelfinspector;
import net.minecraft.resources.ResourceLocation; import net.minecraft.resources.Identifier;
import org.slf4j.Logger; import org.slf4j.Logger;
import org.slf4j.LoggerFactory; import org.slf4j.LoggerFactory;
@@ -9,9 +9,9 @@ public class Constants {
public static final String MOD_NAME = "Bookshelf Inspector"; public static final String MOD_NAME = "Bookshelf Inspector";
public static final Logger LOG = LoggerFactory.getLogger(MOD_NAME); public static final Logger LOG = LoggerFactory.getLogger(MOD_NAME);
public static final ResourceLocation BOOK_SHELF_INVENTORY_REQUEST_PACKET_ID = ResourceLocation.fromNamespaceAndPath(MOD_ID,"book_shelf_inventory_request"); public static final Identifier BOOK_SHELF_INVENTORY_REQUEST_PACKET_ID = Identifier.fromNamespaceAndPath(MOD_ID,"book_shelf_inventory_request");
public static final ResourceLocation BOOK_SHELF_INVENTORY_PACKET_ID = ResourceLocation.fromNamespaceAndPath(MOD_ID,"book_shelf_inventory"); public static final Identifier BOOK_SHELF_INVENTORY_PACKET_ID = Identifier.fromNamespaceAndPath(MOD_ID,"book_shelf_inventory");
public static final ResourceLocation MOD_CHECK_PACKET_ID = ResourceLocation.fromNamespaceAndPath(MOD_ID,"mod_check"); public static final Identifier MOD_CHECK_PACKET_ID = Identifier.fromNamespaceAndPath(MOD_ID,"mod_check");
public static final ResourceLocation LECTERN_INVENTORY_REQUEST_PACKET_ID = ResourceLocation.fromNamespaceAndPath(MOD_ID, "lectern_inventory_request"); public static final Identifier LECTERN_INVENTORY_REQUEST_PACKET_ID = Identifier.fromNamespaceAndPath(MOD_ID, "lectern_inventory_request");
public static final ResourceLocation SHELF_INVENTORY_REQUEST_PACKET_ID = ResourceLocation.fromNamespaceAndPath(MOD_ID,"shelf_inventory_request"); public static final Identifier SHELF_INVENTORY_REQUEST_PACKET_ID = Identifier.fromNamespaceAndPath(MOD_ID,"shelf_inventory_request");
} }
@@ -1,12 +1,12 @@
package com.lukasabbe.bookshelfinspector.data; package com.lukasabbe.bookshelfinspector.data;
import net.minecraft.core.registries.Registries; import net.minecraft.core.registries.Registries;
import net.minecraft.resources.ResourceLocation; import net.minecraft.resources.Identifier;
import net.minecraft.tags.TagKey; import net.minecraft.tags.TagKey;
import net.minecraft.world.level.block.Block; import net.minecraft.world.level.block.Block;
public class Tags { public class Tags {
public static final TagKey<Block> CHISELED_BOOKSHELVES = TagKey.create(Registries.BLOCK, ResourceLocation.fromNamespaceAndPath("c", "chiseled_bookshelves")); public static final TagKey<Block> CHISELED_BOOKSHELVES = TagKey.create(Registries.BLOCK, Identifier.fromNamespaceAndPath("c", "chiseled_bookshelves"));
public static final TagKey<Block> LECTERNS = TagKey.create(Registries.BLOCK, ResourceLocation.fromNamespaceAndPath("c", "lectern")); public static final TagKey<Block> LECTERNS = TagKey.create(Registries.BLOCK, Identifier.fromNamespaceAndPath("c", "lectern"));
public static final TagKey<Block> SHELVES = TagKey.create(Registries.BLOCK, ResourceLocation.fromNamespaceAndPath("c", "shelves")); public static final TagKey<Block> SHELVES = TagKey.create(Registries.BLOCK, Identifier.fromNamespaceAndPath("c", "shelves"));
} }
@@ -16,7 +16,6 @@ public class ModMenu implements ModMenuApi {
.setParentScreen(parent) .setParentScreen(parent)
.setTitle(Component.translatable("bookshelfinspector.config.title")); .setTitle(Component.translatable("bookshelfinspector.config.title"));
ConfigEntryBuilder entryBuilder = builder.entryBuilder(); ConfigEntryBuilder entryBuilder = builder.entryBuilder();
builder builder
.getOrCreateCategory(Component.translatable("bookshelfinspector.config.category")) .getOrCreateCategory(Component.translatable("bookshelfinspector.config.category"))
.addEntry(entryBuilder .addEntry(entryBuilder
+1 -1
View File
@@ -31,7 +31,7 @@
"depends": { "depends": {
"fabricloader": ">=${fabric_loader_version}", "fabricloader": ">=${fabric_loader_version}",
"fabric-api": "*", "fabric-api": "*",
"minecraft": "~1.21.9-beta.1", "minecraft": "~1.21.11",
"java": ">=${java_version}" "java": ">=${java_version}"
} }
} }
+11 -11
View File
@@ -1,4 +1,4 @@
version=2.2+1.21.10 version=2.2+1.21.11
# release, beta & alpha # release, beta & alpha
versionType=release versionType=release
@@ -6,27 +6,27 @@ group=com.lukasabbe.bookshelfinspector
java_version=21 java_version=21
# Common # Common
minecraft_version=1.21.10 minecraft_version=1.21.11
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.10, 1.22) minecraft_version_range=[1.21.11, 1.22)
# https://projects.neoforged.net/neoforged/neoform # https://projects.neoforged.net/neoforged/neoform
neo_form_version=1.21.10-20251007.142004 neo_form_version=1.21.11-20251209.172050
# 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.9 parchment_minecraft=1.21.10
parchment_version=2025.10.05 parchment_version=2025.10.12
# Fabric # Fabric
fabric_version=0.134.1+1.21.10 fabric_version=0.139.5+1.21.11
fabric_loader_version=0.17.2 fabric_loader_version=0.18.1
# NeoForge # NeoForge
neoforge_version=21.10.1-beta neoforge_version=21.11.6-beta
neoforge_loader_version_range=[4,) neoforge_loader_version_range=[4,)
# Gradle # Gradle
@@ -35,5 +35,5 @@ org.gradle.daemon=false
# Global dep # Global dep
YAML_snake=2.5 YAML_snake=2.5
cloth_config=20.0.148 cloth_config=21.11.151
mod_menu=16.0.0-rc.1 mod_menu=17.0.0-alpha.1
+1 -1
View File
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.14-bin.zip distributionUrl=https\://services.gradle.org/distributions/gradle-9.2.0-bin.zip
networkTimeout=10000 networkTimeout=10000
validateDistributionUrl=true validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME zipStoreBase=GRADLE_USER_HOME