use of net.silentchaos512.gems.api.lib.EnumMaterialGrade in project SilentGems by SilentChaos512.
the class ToolPartTip method getStatModifier.
@Override
public ItemStatModifier getStatModifier(ItemStat stat, EnumMaterialGrade grade) {
float val = stats.getStat(stat);
Operation op = ItemStatModifier.Operation.ADD;
if (stat == CommonItemStats.ATTACK_SPEED)
val -= 1f;
else if (stat == CommonItemStats.HARVEST_LEVEL)
op = ItemStatModifier.Operation.MAX;
return new ItemStatModifier(getUnlocalizedName(), val, op);
}
Aggregations