use of gregtech.api.unification.material.properties.ToolProperty in project GregTech by GregTechCEu.
the class TurbineRotorBehavior method getRotorEfficiency.
public int getRotorEfficiency(ItemStack stack) {
Material material = getPartMaterial(stack);
ToolProperty property = material.getProperty(PropertyKey.TOOL);
return property == null ? -1 : ((int) ((60 + property.getToolSpeed() * 8)) / 5 * 5);
}
Aggregations