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
34
35
36
37
38
39
40
41
42
43
44
45
46
|
package tectech.thing.metaTileEntity.multi.godforge.util;
import net.minecraft.util.StatCollector;
import com.gtnewhorizons.modularui.api.drawable.UITexture;
import com.gtnewhorizons.modularui.api.math.Size;
import tectech.thing.gui.TecTechUITextures;
public enum MilestoneIcon {
CHARGE(TecTechUITextures.PICTURE_GODFORGE_MILESTONE_CHARGE, 60, 75, "power"),
CONVERSION(TecTechUITextures.PICTURE_GODFORGE_MILESTONE_CONVERSION, 54, 75, "recipe"),
CATALYST(TecTechUITextures.PICTURE_GODFORGE_MILESTONE_CATALYST, 75, 75, "fuel"),
COMPOSITION(TecTechUITextures.PICTURE_GODFORGE_MILESTONE_COMPOSITION, 75, 75, "purchasable"),
;
public static final MilestoneIcon[] VALUES = values();
private final UITexture symbol;
private final Size size;
private final String name;
MilestoneIcon(UITexture symbol, int width, int height, String shortName) {
this.symbol = symbol;
this.size = new Size(width, height);
this.name = "gt.blockmachines.multimachine.FOG." + shortName + "milestone";
}
public UITexture getSymbol() {
return symbol;
}
public Size getSize() {
return size;
}
public float getWidthRatio() {
return 1.0f * size.width / size.height;
}
public String getNameText() {
return StatCollector.translateToLocal(name);
}
}
|