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);
}
}
}
Aggregations