Applied-Energistics-2-tiler.../src/main/java/appeng/core/localization/GuiText.java

105 lines
3 KiB
Java
Raw Normal View History

2014-11-14 12:02:52 +01:00
/*
* This file is part of Applied Energistics 2.
* Copyright (c) 2013 - 2014, AlgorithmX2, All rights reserved.
*
* Applied Energistics 2 is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Applied Energistics 2 is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with Applied Energistics 2. If not, see <http://www.gnu.org/licenses/lgpl>.
*/
2014-09-24 02:26:27 +02:00
package appeng.core.localization;
2014-09-24 02:26:27 +02:00
import net.minecraft.util.StatCollector;
2014-09-24 02:26:27 +02:00
public enum GuiText
{
inventory( "container" ), // mc's default Inventory localization.
2014-09-24 02:26:27 +02:00
Chest, StoredEnergy, Of, Condenser, Drive, GrindStone, SkyChest,
VibrationChamber, SpatialIOPort, LevelEmitter, Terminal,
Interface, Config, StoredItems, Patterns, ImportBus, ExportBus,
CellWorkbench, NetworkDetails, StorageCells, IOBuses,
IOPort, BytesUsed, Types, QuantumLinkChamber, PortableCell,
NetworkTool, PowerUsageRate, PowerInputRate, Installed, EnergyDrain,
StorageBus, Priority, Security, Encoded, Blank, Unlinked, Linked,
SecurityCardEditor, NoPermissions, WirelessTerminal, Wireless,
CraftingTerminal, FormationPlane, Inscriber, QuartzCuttingKnife,
// tunnel names
METunnel, ItemTunnel, RedstoneTunnel, EUTunnel, FluidTunnel, OCTunnel, LightTunnel, RFTunnel, PressureTunnel,
2014-09-24 02:26:27 +02:00
StoredSize, CopyMode, CopyModeDesc, PatternTerminal, CraftingPattern,
ProcessingPattern, Crafts, Creates, And, With, MolecularAssembler,
StoredPower, MaxPower, RequiredPower, Efficiency, InWorldCrafting,
inWorldFluix, inWorldPurificationCertus, inWorldPurificationNether,
inWorldPurificationFluix, inWorldSingularity, ChargedQuartz, OfSecondOutput,
NoSecondOutput, Stores, Next, SelectAmount, Lumen, Empty,
2014-09-24 02:26:27 +02:00
2015-05-19 16:07:02 +02:00
ConfirmCrafting, Stored, Crafting, Scheduled, CraftingStatus, Cancel, ETA, ETAFormat,
2014-09-24 02:26:27 +02:00
FromStorage, ToCraft, CraftingPlan, CalculatingWait, Start, Bytes,
CraftingCPU, Automatic, CoProcessors, Simulation, Missing,
InterfaceTerminal, NoCraftingCPUs, Clean, InvalidPattern,
2014-09-24 02:26:27 +02:00
InterfaceTerminalHint, Range, TransparentFacades, TransparentFacadesHint,
NoCraftingJobs, CPUs, FacadeCrafting, inWorldCraftingPresses, ChargedQuartzFind,
2015-02-03 12:04:13 +01:00
Included, Excluded, Partitioned, Precise, Fuzzy,
// Used in a terminal to indicate that an item is craftable
SmallFontCraft, LargeFontCraft,
// Used in a ME Interface when no appropriate TileEntity was detected near it
Nothing;
2014-09-24 02:26:27 +02:00
final String root;
2014-09-24 02:26:27 +02:00
GuiText()
{
2014-12-29 15:13:47 +01:00
this.root = "gui.appliedenergistics2";
2014-09-24 02:26:27 +02:00
}
GuiText( String r )
{
2014-12-29 15:13:47 +01:00
this.root = r;
2014-09-24 02:26:27 +02:00
}
public String getLocal()
2014-09-24 02:26:27 +02:00
{
return StatCollector.translateToLocal( this.getUnlocalized() );
2014-09-24 02:26:27 +02:00
}
public String getUnlocalized()
2014-09-24 02:26:27 +02:00
{
return this.root + '.' + this.toString();
2014-09-24 02:26:27 +02:00
}
}