feat: remove useless parts of the testing
This commit is contained in:
parent
b33ff99f07
commit
6d1f94ed54
|
@ -12,92 +12,17 @@ import net.minecraft.text.Text;
|
||||||
import net.minecraft.util.Identifier;
|
import net.minecraft.util.Identifier;
|
||||||
|
|
||||||
public class ClutteredCreative implements ModInitializer {
|
public class ClutteredCreative implements ModInitializer {
|
||||||
private static final ItemGroup GROUP_BUILDING = FabricItemGroup.builder()
|
private static final ItemGroup TEST = FabricItemGroup.builder()
|
||||||
.icon(() -> new ItemStack(Items.BRICKS))
|
|
||||||
.displayName(Text.of("Building Blocks"))
|
|
||||||
.build();
|
|
||||||
|
|
||||||
private static final ItemGroup GROUP_DECORATION = FabricItemGroup.builder()
|
|
||||||
.icon(() -> new ItemStack(Items.PEONY))
|
|
||||||
.displayName(Text.of("Decoration Blocks"))
|
|
||||||
.build();
|
|
||||||
|
|
||||||
private static final ItemGroup GROUP_REDSTONE = FabricItemGroup.builder()
|
|
||||||
.icon(() -> new ItemStack(Items.REDSTONE))
|
|
||||||
.displayName(Text.of("Redstone"))
|
|
||||||
.build();
|
|
||||||
|
|
||||||
private static final ItemGroup GROUP_TRANSPORT = FabricItemGroup.builder()
|
|
||||||
.icon(() -> new ItemStack(Items.POWERED_RAIL))
|
.icon(() -> new ItemStack(Items.POWERED_RAIL))
|
||||||
.displayName(Text.of("Transportation"))
|
.displayName(Text.of("test"))
|
||||||
.build();
|
.build();
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void onInitialize() {
|
public void onInitialize() {
|
||||||
Registry.register(Registries.ITEM_GROUP, new Identifier("cc", "yo"), GROUP_TRANSPORT);
|
Registry.register(Registries.ITEM_GROUP, new Identifier("cc", "test"), TEST);
|
||||||
|
|
||||||
ItemGroupEvents.modifyEntriesEvent(RegistryKey.of(RegistryKeys.ITEM_GROUP, new Identifier("cc", "yo"))).register(content -> {
|
ItemGroupEvents.modifyEntriesEvent(RegistryKey.of(RegistryKeys.ITEM_GROUP, new Identifier("cc", "test"))).register(content -> {
|
||||||
content.add(Items.REDSTONE);
|
content.add(Items.REDSTONE);
|
||||||
});
|
});
|
||||||
|
|
||||||
/*
|
|
||||||
Registry.register(Registries.ITEM_GROUP, new Identifier("cc", "building"), GROUP_BUILDING);
|
|
||||||
Registry.register(Registries.ITEM_GROUP, new Identifier("cc", "decoration"), GROUP_DECORATION);
|
|
||||||
Registry.register(Registries.ITEM_GROUP, new Identifier("cc", "redstone"), GROUP_REDSTONE);
|
|
||||||
Registry.register(Registries.ITEM_GROUP, new Identifier("cc", "yo"), GROUP_TRANSPORT);
|
|
||||||
|
|
||||||
ItemGroupEvents.modifyEntriesEvent(RegistryKey.of(RegistryKeys.ITEM_GROUP, new Identifier("cc", "decoration"))).register(content -> {
|
|
||||||
content.add(Items.OAK_SAPLING);
|
|
||||||
});
|
|
||||||
|
|
||||||
ItemGroupEvents.modifyEntriesEvent(RegistryKey.of(RegistryKeys.ITEM_GROUP, new Identifier("cc", "redstone"))).register(content -> {
|
|
||||||
content.add(Items.REDSTONE);
|
|
||||||
});
|
|
||||||
|
|
||||||
ItemGroupEvents.modifyEntriesEvent(RegistryKey.of(RegistryKeys.ITEM_GROUP, new Identifier("cc", "transport"))).register(content -> {
|
|
||||||
content.add(Items.POWERED_RAIL);
|
|
||||||
});
|
|
||||||
|
|
||||||
ItemGroupEvents.modifyEntriesEvent(RegistryKey.of(RegistryKeys.ITEM_GROUP, new Identifier("cc", "building"))).register(content -> {
|
|
||||||
content.add(Items.STONE);
|
|
||||||
content.add(Items.GRANITE);
|
|
||||||
content.add(Items.POLISHED_GRANITE);
|
|
||||||
content.add(Items.DIORITE);
|
|
||||||
content.add(Items.POLISHED_DIORITE);
|
|
||||||
content.add(Items.ANDESITE);
|
|
||||||
content.add(Items.POLISHED_ANDESITE);
|
|
||||||
content.add(Items.DEEPSLATE);
|
|
||||||
content.add(Items.COBBLED_DEEPSLATE);
|
|
||||||
content.add(Items.POLISHED_DEEPSLATE);
|
|
||||||
content.add(Items.CALCITE);
|
|
||||||
content.add(Items.TUFF);
|
|
||||||
content.add(Items.DRIPSTONE_BLOCK);
|
|
||||||
content.add(Items.GRASS_BLOCK);
|
|
||||||
content.add(Items.DIRT);
|
|
||||||
content.add(Items.COARSE_DIRT);
|
|
||||||
content.add(Items.PODZOL);
|
|
||||||
content.add(Items.ROOTED_DIRT);
|
|
||||||
content.add(Items.MUD);
|
|
||||||
content.add(Items.CRIMSON_NYLIUM);
|
|
||||||
content.add(Items.WARPED_NYLIUM);
|
|
||||||
content.add(Items.COBBLESTONE);
|
|
||||||
content.add(Items.OAK_PLANKS);
|
|
||||||
content.add(Items.SPRUCE_PLANKS);
|
|
||||||
content.add(Items.BIRCH_PLANKS);
|
|
||||||
content.add(Items.JUNGLE_PLANKS);
|
|
||||||
content.add(Items.ACACIA_PLANKS);
|
|
||||||
content.add(Items.DARK_OAK_PLANKS);
|
|
||||||
content.add(Items.MANGROVE_PLANKS);
|
|
||||||
content.add(Items.CHERRY_PLANKS);
|
|
||||||
content.add(Items.CRIMSON_PLANKS);
|
|
||||||
content.add(Items.WARPED_PLANKS);
|
|
||||||
content.add(Items.BEDROCK);
|
|
||||||
content.add(Items.SAND);
|
|
||||||
content.add(Items.RED_SAND);
|
|
||||||
content.add(Items.GRAVEL);
|
|
||||||
content.add(Items.COAL_ORE);
|
|
||||||
content.add(Items.DEEPSLATE_COAL_ORE);
|
|
||||||
});
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue