Search in sources :

Example 1 with MetaArmor

use of gregtech.common.items.armor.MetaArmor in project GregTech by GregTechCEu.

the class MetaItems method init.

public static void init() {
    MetaItem1 first = new MetaItem1();
    first.setRegistryName("meta_item_1");
    MetaTool tool = new MetaTool();
    tool.setRegistryName("meta_tool");
    CT_OREDICT_ITEM = new MetaOreDictItem((short) 0);
    CT_OREDICT_ITEM.setRegistryName("meta_oredict_item_ct");
    MetaArmor armor = new MetaArmor();
    armor.setRegistryName("gt_armor");
    for (OrePrefix prefix : orePrefixes) {
        String regName = CaseFormat.UPPER_CAMEL.to(CaseFormat.LOWER_UNDERSCORE, prefix.name());
        MetaPrefixItem metaOrePrefix = new MetaPrefixItem(prefix);
        metaOrePrefix.setRegistryName(String.format("meta_%s", regName));
    }
}
Also used : MetaArmor(gregtech.common.items.armor.MetaArmor) OrePrefix(gregtech.api.unification.ore.OrePrefix) MetaPrefixItem(gregtech.api.items.materialitem.MetaPrefixItem) MetaOreDictItem(gregtech.api.items.metaitem.MetaOreDictItem)

Aggregations

MetaPrefixItem (gregtech.api.items.materialitem.MetaPrefixItem)1 MetaOreDictItem (gregtech.api.items.metaitem.MetaOreDictItem)1 OrePrefix (gregtech.api.unification.ore.OrePrefix)1 MetaArmor (gregtech.common.items.armor.MetaArmor)1