Applied-Energistics-2-tiler.../core/localization/GuiText.java

34 lines
839 B
Java
Raw Normal View History

package appeng.core.localization;
import net.minecraft.util.StatCollector;
import appeng.core.AELog;
public enum GuiText
{
inventory("container"), // mc's default Inventory localization.
2014-01-20 17:41:37 +01:00
Chest, StoredEnergy, Of, Condenser, Drive, GrindStone, VibrationChamber, SpatialIOPort, LevelEmitter, Terminal, Interface, Config, StoredItems, Patterns, ImportBus, ExportBus, CellWorkbench, NetworkDetails, StorageCells, IOBuses, IOPort, BytesUsed, Types, QuantumLinkChamber, PortableCell;
String root;
GuiText() {
root = "gui.appliedenergistics2";
2014-01-20 17:41:37 +01:00
AELog.localization( "gui", getUnlocalized() );
}
GuiText(String r) {
root = r;
}
2014-01-20 17:41:37 +01:00
public String getUnlocalized()
{
return root + "." + toString();
}
public String getLocal()
{
2014-01-20 17:41:37 +01:00
return StatCollector.translateToLocal( getUnlocalized() );
}
}