feat: remove useless stuff

This commit is contained in:
TheClashFruit 2023-08-09 19:40:15 +02:00
parent 6d1f94ed54
commit d34bcdcad7
Signed by: TheClashFruit
GPG key ID: CF4A319B9A73290C
5 changed files with 22 additions and 16 deletions

View file

@ -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.

View file

@ -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

View file

@ -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);
});
}
}

View file

@ -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;
}
}

View file

@ -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"
}
}
}
}