Search in sources :

Example 1 with Redirect

use of slimeknights.tconstruct.library.materials.json.MaterialJson.Redirect in project Materialis by RCXcrafter.

the class MaterialisMaterials method addMaterials.

@Override
protected void addMaterials() {
    addMaterial(fairy, 3, ORDER_NETHER + ORDER_COMPAT, false, 0xFF87BC);
    // general oredict materials
    addCompatMetalMaterial(brass, 3, ORDER_WEAPON + ORDER_COMPAT, 0xFFD359);
    addCompatMetalMaterial(aluminum, 2, ORDER_HARVEST + ORDER_COMPAT, 0xE6B7BF);
    addCompatMetalMaterial(nickel, 2, ORDER_HARVEST + ORDER_COMPAT, 0xF9EA98);
    // addCompatMetalMaterial(platinum, 3, ORDER_HARVEST + ORDER_COMPAT, 0xA1FFFF);
    this.addRedirect(platinum, new Redirect(new ResourceLocation(TConstruct.MOD_ID, "platinum"), null));
    addCompatMetalMaterial(uranium, 2, ORDER_HARVEST + ORDER_COMPAT, 0x42BE30);
    // addCompatMetalMaterial(osmium, 2, ORDER_WEAPON + ORDER_COMPAT, 0xCDE8FD);
    this.addRedirect(osmium, new Redirect(new ResourceLocation(TConstruct.MOD_ID, "osmium"), null));
    // addCompatMetalMaterial(tungsten, 3, ORDER_WEAPON + ORDER_COMPAT, 0xA7A88F);
    this.addRedirect(tungsten, new Redirect(new ResourceLocation(TConstruct.MOD_ID, "tungsten"), null));
    // addCompatMetalMaterial(invar, 3, ORDER_HARVEST + ORDER_COMPAT, 0xBAE6D5);
    this.addRedirect(invar, new Redirect(new ResourceLocation(TConstruct.MOD_ID, "invar"), null));
    // create materials
    addMaterial(roseQuartz, 3, ORDER_NETHER + ORDER_COMPAT, true, 0xFF8C80, false, new OrCondition(ConfigEnabledCondition.FORCE_INTEGRATION_MATERIALS, new ModLoadedCondition("create")));
    addCompatMetalMaterial(refinedRadiance, 4, ORDER_SPECIAL + ORDER_COMPAT, 0xFFFFFF);
    addCompatMetalMaterial(shadowSteel, 4, ORDER_SPECIAL + ORDER_COMPAT, 0x635D71);
    // eidolon materials
    addCompatMetalMaterial(pewter, 3, ORDER_HARVEST + ORDER_COMPAT, 0xA1A097);
    addCompatMetalMaterial(arcaneGold, 3, ORDER_WEAPON + ORDER_COMPAT, 0xFFC069);
    // aquaculture materials
    addCompatMetalMaterial(neptunium, 3, ORDER_GENERAL + ORDER_COMPAT, 0x17F1B6);
    // mystical world materials
    addCompatMetalMaterial(quicksilver, 2, ORDER_HARVEST + ORDER_COMPAT, 0xC6B69F);
    // astral sorcery materials
    addCompatMetalMaterial(starmetal, 3, ORDER_HARVEST + ORDER_COMPAT, 0x003CC9);
    // industrial foregoing materials
    addMaterial(plastic, 2, ORDER_HARVEST + ORDER_COMPAT, true, 0xD9D9D9, false, new OrCondition(ConfigEnabledCondition.FORCE_INTEGRATION_MATERIALS, new NotCondition(new TagEmptyCondition("forge:plastic"))));
    addCompatMetalMaterial(pinkSlime, 3, ORDER_GENERAL + ORDER_COMPAT, 0xFF9FEF);
    addMaterial(pinkSlimeball, 6, 9, true, 0xE27BE3);
    // undergarden materials
    addCompatMetalMaterial(cloggrum, 2, ORDER_HARVEST + ORDER_COMPAT, 0x9C8878);
    addCompatMetalMaterial(froststeel, 2, ORDER_WEAPON + ORDER_COMPAT, 0x95BDE3);
    addCompatMetalMaterial(utherium, 3, ORDER_WEAPON + ORDER_COMPAT, 0xEB515B);
    addCompatMetalMaterial(regalium, 6, 9, 0xEBBB71);
    addMaterial(forgottenMetal, 3, ORDER_GENERAL + ORDER_COMPAT, false, 0x6CD7AA, false, new OrCondition(ConfigEnabledCondition.FORCE_INTEGRATION_MATERIALS, new NotCondition(new TagEmptyCondition("forge:ingots/forgotten_metal"))));
    // mekanism materials
    addCompatMetalMaterial(refinedObsidian, 3, ORDER_HARVEST + ORDER_COMPAT, 0xB78FD2);
    addCompatMetalMaterial(refinedGlowstone, 3, ORDER_WEAPON + ORDER_COMPAT, 0xFFE55C);
    // psi materials
    addCompatMetalMaterial(psimetal, 2, ORDER_SPECIAL + ORDER_COMPAT, 0xB6A9E7);
    addCompatMetalMaterial(ebonyPsimetal, 3, ORDER_SPECIAL + ORDER_COMPAT, 0x3D3838);
    addCompatMetalMaterial(ivoryPsimetal, 3, ORDER_SPECIAL + ORDER_COMPAT, 0xF6F9ED);
    // occultism materials
    addCompatMetalMaterial(iesnium, 4, ORDER_HARVEST + ORDER_COMPAT, 0x8ADAE3);
    // botania materials
    addMaterial(livingwood, 1, ORDER_WEAPON + ORDER_COMPAT, true, 0x783519, false, new OrCondition(ConfigEnabledCondition.FORCE_INTEGRATION_MATERIALS, new ModLoadedCondition("botania")));
    addMaterial(dreamwood, 2, ORDER_HARVEST + ORDER_COMPAT, true, 0xC1CCCC, false, new OrCondition(ConfigEnabledCondition.FORCE_INTEGRATION_MATERIALS, new ModLoadedCondition("botania")));
    addCompatMetalMaterial(manasteel, 2, ORDER_HARVEST + ORDER_COMPAT, 0x3389FF);
    addCompatMetalMaterial(elementium, 3, ORDER_WEAPON + ORDER_COMPAT, 0xF15CAE);
    addCompatMetalMaterial(terrasteel, 4, ORDER_WEAPON + ORDER_COMPAT, 0x53F900);
    // mythicbotany materials
    addCompatMetalMaterial(alfsteel, 4, ORDER_WEAPON + ORDER_COMPAT, 0xFFC74E);
    // draconic evolution materials
    addCompatMetalMaterial(draconium, 4, ORDER_GENERAL + ORDER_COMPAT, 0x905EBE);
    addCompatMetalMaterial(awakenedDraconium, 4, ORDER_GENERAL + ORDER_COMPAT, 0xFF8800);
    // redstone arsenal materials
    addCompatMetalMaterial(fluxInfused, 3, ORDER_GENERAL + ORDER_COMPAT, 0xE68A29);
}
Also used : NotCondition(net.minecraftforge.common.crafting.conditions.NotCondition) ModLoadedCondition(net.minecraftforge.common.crafting.conditions.ModLoadedCondition) ResourceLocation(net.minecraft.util.ResourceLocation) Redirect(slimeknights.tconstruct.library.materials.json.MaterialJson.Redirect) OrCondition(net.minecraftforge.common.crafting.conditions.OrCondition) TagEmptyCondition(net.minecraftforge.common.crafting.conditions.TagEmptyCondition)

Aggregations

ResourceLocation (net.minecraft.util.ResourceLocation)1 ModLoadedCondition (net.minecraftforge.common.crafting.conditions.ModLoadedCondition)1 NotCondition (net.minecraftforge.common.crafting.conditions.NotCondition)1 OrCondition (net.minecraftforge.common.crafting.conditions.OrCondition)1 TagEmptyCondition (net.minecraftforge.common.crafting.conditions.TagEmptyCondition)1 Redirect (slimeknights.tconstruct.library.materials.json.MaterialJson.Redirect)1