Basic reformat, hit once, hope never again
This commit is contained in:
@@ -72,14 +72,14 @@ public enum ButtonToolTips
|
||||
this.root = r;
|
||||
}
|
||||
|
||||
public String getUnlocalized()
|
||||
{
|
||||
return this.root + '.' + this.toString();
|
||||
}
|
||||
|
||||
public String getLocal()
|
||||
{
|
||||
return StatCollector.translateToLocal( this.getUnlocalized() );
|
||||
}
|
||||
|
||||
public String getUnlocalized()
|
||||
{
|
||||
return this.root + '.' + this.toString();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -18,11 +18,13 @@
|
||||
|
||||
package appeng.core.localization;
|
||||
|
||||
|
||||
import net.minecraft.util.StatCollector;
|
||||
|
||||
|
||||
public enum GuiText
|
||||
{
|
||||
inventory("container"), // mc's default Inventory localization.
|
||||
inventory( "container" ), // mc's default Inventory localization.
|
||||
|
||||
Chest, StoredEnergy, Of, Condenser, Drive, GrindStone, SkyChest,
|
||||
|
||||
@@ -72,17 +74,14 @@ public enum GuiText
|
||||
|
||||
final String root;
|
||||
|
||||
GuiText() {
|
||||
GuiText()
|
||||
{
|
||||
this.root = "gui.appliedenergistics2";
|
||||
}
|
||||
|
||||
GuiText(String r) {
|
||||
this.root = r;
|
||||
}
|
||||
|
||||
public String getUnlocalized()
|
||||
GuiText( String r )
|
||||
{
|
||||
return this.root + '.' + this.toString();
|
||||
this.root = r;
|
||||
}
|
||||
|
||||
public String getLocal()
|
||||
@@ -90,4 +89,9 @@ public enum GuiText
|
||||
return StatCollector.translateToLocal( this.getUnlocalized() );
|
||||
}
|
||||
|
||||
public String getUnlocalized()
|
||||
{
|
||||
return this.root + '.' + this.toString();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -18,9 +18,11 @@
|
||||
|
||||
package appeng.core.localization;
|
||||
|
||||
|
||||
import net.minecraft.util.ChatComponentTranslation;
|
||||
import net.minecraft.util.IChatComponent;
|
||||
|
||||
|
||||
public enum PlayerMessages
|
||||
{
|
||||
ChestCannotReadStorageCell, InvalidMachine, LoadedSettings, SavedSettings, MachineNotPowered,
|
||||
@@ -30,14 +32,14 @@ public enum PlayerMessages
|
||||
CommunicationError, OutOfRange, DeviceNotPowered, DeviceNotWirelessTerminal, DeviceNotLinked, StationCanNotBeLocated,
|
||||
SettingCleared,;
|
||||
|
||||
String getName()
|
||||
{
|
||||
return "chat.appliedenergistics2." + this.toString();
|
||||
}
|
||||
|
||||
public IChatComponent get()
|
||||
{
|
||||
return new ChatComponentTranslation( this.getName() );
|
||||
}
|
||||
|
||||
String getName()
|
||||
{
|
||||
return "chat.appliedenergistics2." + this.toString();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -18,8 +18,10 @@
|
||||
|
||||
package appeng.core.localization;
|
||||
|
||||
|
||||
import net.minecraft.util.StatCollector;
|
||||
|
||||
|
||||
public enum WailaText
|
||||
{
|
||||
Crafting,
|
||||
@@ -32,17 +34,14 @@ public enum WailaText
|
||||
|
||||
final String root;
|
||||
|
||||
WailaText() {
|
||||
WailaText()
|
||||
{
|
||||
this.root = "waila.appliedenergistics2";
|
||||
}
|
||||
|
||||
WailaText(String r) {
|
||||
this.root = r;
|
||||
}
|
||||
|
||||
public String getUnlocalized()
|
||||
WailaText( String r )
|
||||
{
|
||||
return this.root + '.' + this.toString();
|
||||
this.root = r;
|
||||
}
|
||||
|
||||
public String getLocal()
|
||||
@@ -50,4 +49,9 @@ public enum WailaText
|
||||
return StatCollector.translateToLocal( this.getUnlocalized() );
|
||||
}
|
||||
|
||||
public String getUnlocalized()
|
||||
{
|
||||
return this.root + '.' + this.toString();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user