com.magistuarmory.misc.ModCreativeTabs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of 1.19.2-epic-knights-common Show documentation
Show all versions of 1.19.2-epic-knights-common Show documentation
mod that adds medieval stuff to the game
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()
{
}
}