Search in sources :

Example 6 with ToolProperty

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);
}
Also used : Material(gregtech.api.unification.material.Material) ToolProperty(gregtech.api.unification.material.properties.ToolProperty)

Aggregations

Material (gregtech.api.unification.material.Material)6 ToolProperty (gregtech.api.unification.material.properties.ToolProperty)6 NBTTagCompound (net.minecraft.nbt.NBTTagCompound)3