From c6985396c993a490c6fced42b5c888e1a8a74c47 Mon Sep 17 00:00:00 2001 From: sisby-folk Date: Fri, 26 Jul 2024 16:13:08 +1000 Subject: [PATCH] slightly more specific suppliers --- src/main/java/dev/hephaestus/glowcase/Glowcase.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/dev/hephaestus/glowcase/Glowcase.java b/src/main/java/dev/hephaestus/glowcase/Glowcase.java index 5eb1677..6844bfb 100644 --- a/src/main/java/dev/hephaestus/glowcase/Glowcase.java +++ b/src/main/java/dev/hephaestus/glowcase/Glowcase.java @@ -41,19 +41,19 @@ public class Glowcase implements ModInitializer { public static final TagKey ITEM_TAG = TagKey.of(RegistryKeys.ITEM, id("items")); public static final Supplier HYPERLINK_BLOCK = Suppliers.ofInstance(Registry.register(Registries.BLOCK, id("hyperlink_block"), new HyperlinkBlock())); - public static final Supplier HYPERLINK_BLOCK_ITEM = Suppliers.ofInstance(Registry.register(Registries.ITEM, id("hyperlink_block"), new BlockItem(HYPERLINK_BLOCK.get(), new Item.Settings()))); + public static final Supplier HYPERLINK_BLOCK_ITEM = Suppliers.ofInstance(Registry.register(Registries.ITEM, id("hyperlink_block"), new BlockItem(HYPERLINK_BLOCK.get(), new Item.Settings()))); public static final Supplier> HYPERLINK_BLOCK_ENTITY = Suppliers.ofInstance(Registry.register(Registries.BLOCK_ENTITY_TYPE, id("hyperlink_block"), BlockEntityType.Builder.create(HyperlinkBlockEntity::new, HYPERLINK_BLOCK.get()).build(null))); public static final Supplier ITEM_DISPLAY_BLOCK = Suppliers.ofInstance(Registry.register(Registries.BLOCK, id("item_display_block"), new ItemDisplayBlock())); - public static final Supplier ITEM_DISPLAY_BLOCK_ITEM = Suppliers.ofInstance(Registry.register(Registries.ITEM, id("item_display_block"), new BlockItem(ITEM_DISPLAY_BLOCK.get(), new Item.Settings()))); + public static final Supplier ITEM_DISPLAY_BLOCK_ITEM = Suppliers.ofInstance(Registry.register(Registries.ITEM, id("item_display_block"), new BlockItem(ITEM_DISPLAY_BLOCK.get(), new Item.Settings()))); public static final Supplier> ITEM_DISPLAY_BLOCK_ENTITY = Suppliers.ofInstance(Registry.register(Registries.BLOCK_ENTITY_TYPE, id("item_display_block"), BlockEntityType.Builder.create(ItemDisplayBlockEntity::new, ITEM_DISPLAY_BLOCK.get()).build(null))); public static final Supplier MAILBOX_BLOCK = Suppliers.ofInstance(Registry.register(Registries.BLOCK, id("mailbox"), new MailboxBlock())); - public static final Supplier MAILBOX_ITEM = Suppliers.ofInstance(Registry.register(Registries.ITEM, id("mailbox"), new BlockItem(MAILBOX_BLOCK.get(), new Item.Settings()))); + public static final Supplier MAILBOX_ITEM = Suppliers.ofInstance(Registry.register(Registries.ITEM, id("mailbox"), new BlockItem(MAILBOX_BLOCK.get(), new Item.Settings()))); public static final Supplier> MAILBOX_BLOCK_ENTITY = Suppliers.ofInstance(Registry.register(Registries.BLOCK_ENTITY_TYPE, id("mailbox"), BlockEntityType.Builder.create(MailboxBlockEntity::new, MAILBOX_BLOCK.get()).build(null))); public static final Supplier TEXT_BLOCK = Suppliers.ofInstance(Registry.register(Registries.BLOCK, id("text_block"), new TextBlock())); - public static final Supplier TEXT_BLOCK_ITEM = Suppliers.ofInstance(Registry.register(Registries.ITEM, id("text_block"), new BlockItem(TEXT_BLOCK.get(), new Item.Settings()))); + public static final Supplier TEXT_BLOCK_ITEM = Suppliers.ofInstance(Registry.register(Registries.ITEM, id("text_block"), new BlockItem(TEXT_BLOCK.get(), new Item.Settings()))); public static final Supplier> TEXT_BLOCK_ENTITY = Suppliers.ofInstance(Registry.register(Registries.BLOCK_ENTITY_TYPE, id("text_block"), BlockEntityType.Builder.create(TextBlockEntity::new, TEXT_BLOCK.get()).build(null))); public static final Supplier ITEM_GROUP = Suppliers.ofInstance(Registry.register(Registries.ITEM_GROUP, id("items"), FabricItemGroup.builder()