This commit is contained in:
lukasabbe
2025-11-21 09:36:23 +01:00
parent 9835281010
commit 5bd47af6af
4 changed files with 20 additions and 20 deletions
@@ -1,6 +1,6 @@
package com.lukasabbe.bookshelfinspector;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.resources.Identifier;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -9,9 +9,9 @@ public class Constants {
public static final String MOD_NAME = "Bookshelf Inspector";
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 ResourceLocation BOOK_SHELF_INVENTORY_PACKET_ID = ResourceLocation.fromNamespaceAndPath(MOD_ID,"book_shelf_inventory");
public static final ResourceLocation MOD_CHECK_PACKET_ID = ResourceLocation.fromNamespaceAndPath(MOD_ID,"mod_check");
public static final ResourceLocation LECTERN_INVENTORY_REQUEST_PACKET_ID = ResourceLocation.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 BOOK_SHELF_INVENTORY_REQUEST_PACKET_ID = Identifier.fromNamespaceAndPath(MOD_ID,"book_shelf_inventory_request");
public static final Identifier BOOK_SHELF_INVENTORY_PACKET_ID = Identifier.fromNamespaceAndPath(MOD_ID,"book_shelf_inventory");
public static final Identifier MOD_CHECK_PACKET_ID = Identifier.fromNamespaceAndPath(MOD_ID,"mod_check");
public static final Identifier LECTERN_INVENTORY_REQUEST_PACKET_ID = Identifier.fromNamespaceAndPath(MOD_ID, "lectern_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;
import net.minecraft.core.registries.Registries;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.resources.Identifier;
import net.minecraft.tags.TagKey;
import net.minecraft.world.level.block.Block;
public class Tags {
public static final TagKey<Block> CHISELED_BOOKSHELVES = TagKey.create(Registries.BLOCK, ResourceLocation.fromNamespaceAndPath("c", "chiseled_bookshelves"));
public static final TagKey<Block> LECTERNS = TagKey.create(Registries.BLOCK, ResourceLocation.fromNamespaceAndPath("c", "lectern"));
public static final TagKey<Block> SHELVES = TagKey.create(Registries.BLOCK, ResourceLocation.fromNamespaceAndPath("c", "shelves"));
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, Identifier.fromNamespaceAndPath("c", "lectern"));
public static final TagKey<Block> SHELVES = TagKey.create(Registries.BLOCK, Identifier.fromNamespaceAndPath("c", "shelves"));
}