blob: 3af699482bb1f6c5f135e313f15b33c83fc20be7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
package com.detrav.items.tools;
import net.minecraft.item.ItemStack;
import com.detrav.enums.Textures01;
import gregtech.api.interfaces.IIconContainer;
/**
* Created by wital_000 on 19.03.2016.
*/
public class DetravToolElectricProspector extends DetravToolElectricProspectorBase {
private final int tier;
public DetravToolElectricProspector(int tier) {
this.tier = tier;
}
public int getBaseQuality() {
return tier - 6;
}
public float getMaxDurabilityMultiplier() {
if (tier - 6 == 0) return (float) Math.pow(((float) ((tier - 6F) * 2F)), 0.0D);
else return (float) ((tier - 6F) * 2F);
}
public IIconContainer getIcon(boolean aIsToolHead, ItemStack aStack) {
if (tier <= 9 && tier >= 6) return Textures01.mTextures[tier - 5];
else return Textures01.mTextures[1];
}
}
|