All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.magistuarmory.misc.ModCreativeTabs Maven / Gradle / Ivy

The newest version!
package com.magistuarmory.misc;

import com.magistuarmory.EpicKnights;
import dev.architectury.registry.CreativeTabRegistry;
import net.minecraft.class_1761;
import net.minecraft.class_1799;
import net.minecraft.class_1802;
import net.minecraft.class_2378;
import net.minecraft.class_2960;

public class ModCreativeTabs
{
	public static final class_1761 ARMOR = createTab("armor", "magistuarmory:armet");
	public static final class_1761 WEAPONS = createTab("weapons", "magistuarmory:iron_flamebladedsword");
	public static final class_1761 PARTICULAR_WEAPONS = createTab("particular_weapons", "magistuarmory:noble_sword");
	public static final class_1761 SHIELDS = createTab("shields", "magistuarmory:iron_heatershield");
	public static final class_1761 ARMOR_DECORATIONS = createTab("armor_decorations", "magistuarmory:crown_decoration");

	public static class_1761 createTab(String tab, String iconitemid)
	{
		return CreativeTabRegistry.create(new class_2960(EpicKnights.ID, tab), () -> new class_1799(class_2378.field_11142.method_17966(new class_2960(iconitemid)).orElse(class_1802.field_8077)));
	}

	public static void init()
	{

	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy