Search in sources :

Example 1 with FletchingMaterialStats

use of slimeknights.tconstruct.library.materials.FletchingMaterialStats in project BaseMetals by MinecraftModDevelopmentMods.

the class TinkersConstructRegistry method addMaterialStats.

/**
 */
public void addMaterialStats() {
    final String curMod = Loader.instance().activeModContainer().getModId();
    for (final Entry<String, TCMaterial> entry : registry.get(curMod).entrySet()) {
        // be double sure!
        entry.getValue().settle();
        final HeadMaterialStats headStats = entry.getValue().getHeadStats();
        final HandleMaterialStats handleStats = entry.getValue().getHandleStats();
        final ExtraMaterialStats extraStats = entry.getValue().getExtraStats();
        final BowMaterialStats bowStats = entry.getValue().getBowStats();
        final ArrowShaftMaterialStats arrowStats = entry.getValue().getArrowStats();
        final FletchingMaterialStats fletchingStats = entry.getValue().getFletchingStats();
        if (TinkerRegistry.getMaterial(entry.getKey()) == entry.getValue().getMaterial()) {
            // the material was properly registered
            final Material work = entry.getValue().getMaterial();
            TinkerRegistry.addMaterialStats(work, headStats, handleStats, extraStats);
            TinkerRegistry.addMaterialStats(work, bowStats);
            TinkerRegistry.addMaterialStats(work, arrowStats);
            TinkerRegistry.addMaterialStats(work, fletchingStats);
        }
    }
}
Also used : BowMaterialStats(slimeknights.tconstruct.library.materials.BowMaterialStats) FletchingMaterialStats(slimeknights.tconstruct.library.materials.FletchingMaterialStats) HandleMaterialStats(slimeknights.tconstruct.library.materials.HandleMaterialStats) HeadMaterialStats(slimeknights.tconstruct.library.materials.HeadMaterialStats) ExtraMaterialStats(slimeknights.tconstruct.library.materials.ExtraMaterialStats) MMDMaterial(com.mcmoddev.lib.material.MMDMaterial) Material(slimeknights.tconstruct.library.materials.Material) ArrowShaftMaterialStats(slimeknights.tconstruct.library.materials.ArrowShaftMaterialStats)

Aggregations

MMDMaterial (com.mcmoddev.lib.material.MMDMaterial)1 ArrowShaftMaterialStats (slimeknights.tconstruct.library.materials.ArrowShaftMaterialStats)1 BowMaterialStats (slimeknights.tconstruct.library.materials.BowMaterialStats)1 ExtraMaterialStats (slimeknights.tconstruct.library.materials.ExtraMaterialStats)1 FletchingMaterialStats (slimeknights.tconstruct.library.materials.FletchingMaterialStats)1 HandleMaterialStats (slimeknights.tconstruct.library.materials.HandleMaterialStats)1 HeadMaterialStats (slimeknights.tconstruct.library.materials.HeadMaterialStats)1 Material (slimeknights.tconstruct.library.materials.Material)1