From d34bcdcad7738c3e98713e066d2f0e439260c390 Mon Sep 17 00:00:00 2001 From: TheClashFruit Date: Wed, 9 Aug 2023 19:40:15 +0200 Subject: [PATCH] feat: remove useless stuff --- README.md | 2 ++ gradle.properties | 2 +- .../java/me/theclashfruit/cc/ClutteredCreative.java | 12 +++++++++++- .../cc/util/CustomTypeItemGroupBuilder.java | 13 ------------- src/main/resources/fabric.mod.json | 9 ++++++++- 5 files changed, 22 insertions(+), 16 deletions(-) delete mode 100644 src/main/java/me/theclashfruit/cc/util/CustomTypeItemGroupBuilder.java diff --git a/README.md b/README.md index 65538b3..a2fee99 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ # ClutteredCreative +![modrinth](https://cdn.jsdelivr.net/npm/@intergrav/devins-badges@3/assets/compact/available/modrinth_vector.svg) + Bring back the old cluttered creative inventory. \ No newline at end of file diff --git a/gradle.properties b/gradle.properties index 997fe34..6062fd2 100644 --- a/gradle.properties +++ b/gradle.properties @@ -8,7 +8,7 @@ yarn_mappings=1.20+build.1 loader_version=0.14.22 # Mod Properties -mod_version = 1.0.0-test +mod_version = 1.0.0-rc.1 maven_group = me.theclashfruit archives_base_name = cc diff --git a/src/main/java/me/theclashfruit/cc/ClutteredCreative.java b/src/main/java/me/theclashfruit/cc/ClutteredCreative.java index b280536..f91d9a7 100644 --- a/src/main/java/me/theclashfruit/cc/ClutteredCreative.java +++ b/src/main/java/me/theclashfruit/cc/ClutteredCreative.java @@ -14,15 +14,25 @@ import net.minecraft.util.Identifier; public class ClutteredCreative implements ModInitializer { private static final ItemGroup TEST = FabricItemGroup.builder() .icon(() -> new ItemStack(Items.POWERED_RAIL)) - .displayName(Text.of("test")) + .displayName(Text.of("Test")) + .build(); + + private static final ItemGroup TEST_TWO = FabricItemGroup.builder() + .icon(() -> new ItemStack(Items.POWERED_RAIL)) + .displayName(Text.of("Test 2")) .build(); @Override public void onInitialize() { Registry.register(Registries.ITEM_GROUP, new Identifier("cc", "test"), TEST); + Registry.register(Registries.ITEM_GROUP, new Identifier("cc", "test_two"), TEST_TWO); ItemGroupEvents.modifyEntriesEvent(RegistryKey.of(RegistryKeys.ITEM_GROUP, new Identifier("cc", "test"))).register(content -> { content.add(Items.REDSTONE); }); + + ItemGroupEvents.modifyEntriesEvent(RegistryKey.of(RegistryKeys.ITEM_GROUP, new Identifier("cc", "test_two"))).register(content -> { + content.add(Items.REDSTONE); + }); } } diff --git a/src/main/java/me/theclashfruit/cc/util/CustomTypeItemGroupBuilder.java b/src/main/java/me/theclashfruit/cc/util/CustomTypeItemGroupBuilder.java deleted file mode 100644 index 049f9df..0000000 --- a/src/main/java/me/theclashfruit/cc/util/CustomTypeItemGroupBuilder.java +++ /dev/null @@ -1,13 +0,0 @@ -package me.theclashfruit.cc.util; - -import net.minecraft.item.ItemGroup; - -public class CustomTypeItemGroupBuilder extends ItemGroup.Builder { - private final ItemGroup.Type type; - - public CustomTypeItemGroupBuilder(ItemGroup.Row row, int column, ItemGroup.Type iType) { - super(row, column); - - this.type = iType; - } -} diff --git a/src/main/resources/fabric.mod.json b/src/main/resources/fabric.mod.json index efbaff9..ee72ac8 100644 --- a/src/main/resources/fabric.mod.json +++ b/src/main/resources/fabric.mod.json @@ -8,7 +8,7 @@ "TheClashFruit" ], "contact": { - "repo": "https://git.theclashfruit.me/TheClashFruit/ClutteredCreative", + "sources": "https://git.theclashfruit.me/TheClashFruit/ClutteredCreative", "issues": "https://git.theclashfruit.me/TheClashFruit/ClutteredCreative/issues", "homepage": "https://modrinth.com/mod/cluttered-creative" }, @@ -31,5 +31,12 @@ "fabricloader": ">=${loader_version}", "fabric": "*", "minecraft": ">=${minecraft_version}" + }, + "custom": { + "modmenu": { + "links": { + "modmenu.discord": "https://discord.gg/CWEApqJ6rc" + } + } } }