First update pass (1/3) - ~1400 -> 82 errors
This is first update pass, which is mainly import reorganization, name fixes, etc... Although some parts of second were done where changes aren't important. Errors: ~1400 -> 82.
This commit is contained in:
@@ -18,9 +18,7 @@
|
||||
|
||||
package appeng.core.localization;
|
||||
|
||||
|
||||
import net.minecraft.util.StatCollector;
|
||||
|
||||
import net.minecraft.util.text.translation.I18n;
|
||||
|
||||
public enum ButtonToolTips
|
||||
{
|
||||
@@ -153,7 +151,7 @@ public enum ButtonToolTips
|
||||
|
||||
public String getLocal()
|
||||
{
|
||||
return StatCollector.translateToLocal( this.getUnlocalized() );
|
||||
return I18n.translateToLocal( this.getUnlocalized() );
|
||||
}
|
||||
|
||||
public String getUnlocalized()
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
package appeng.core.localization;
|
||||
|
||||
|
||||
import net.minecraft.util.StatCollector;
|
||||
import net.minecraft.util.text.translation.I18n;
|
||||
|
||||
|
||||
public enum GuiText
|
||||
@@ -199,7 +199,7 @@ public enum GuiText
|
||||
|
||||
public String getLocal()
|
||||
{
|
||||
return StatCollector.translateToLocal( this.getUnlocalized() );
|
||||
return I18n.translateToLocal( this.getUnlocalized() );
|
||||
}
|
||||
|
||||
public String getUnlocalized()
|
||||
|
||||
@@ -19,8 +19,8 @@
|
||||
package appeng.core.localization;
|
||||
|
||||
|
||||
import net.minecraft.util.ChatComponentTranslation;
|
||||
import net.minecraft.util.IChatComponent;
|
||||
import net.minecraft.util.text.ITextComponent;
|
||||
import net.minecraft.util.text.TextComponentTranslation;
|
||||
|
||||
|
||||
public enum PlayerMessages
|
||||
@@ -42,9 +42,9 @@ public enum PlayerMessages
|
||||
StationCanNotBeLocated,
|
||||
SettingCleared, ;
|
||||
|
||||
public IChatComponent get()
|
||||
public ITextComponent get()
|
||||
{
|
||||
return new ChatComponentTranslation( this.getName() );
|
||||
return new TextComponentTranslation( this.getName() );
|
||||
}
|
||||
|
||||
String getName()
|
||||
|
||||
@@ -18,9 +18,7 @@
|
||||
|
||||
package appeng.core.localization;
|
||||
|
||||
|
||||
import net.minecraft.util.StatCollector;
|
||||
|
||||
import net.minecraft.util.text.translation.I18n;
|
||||
|
||||
public enum WailaText
|
||||
{
|
||||
@@ -46,7 +44,7 @@ public enum WailaText
|
||||
|
||||
public String getLocal()
|
||||
{
|
||||
return StatCollector.translateToLocal( this.getUnlocalized() );
|
||||
return I18n.translateToLocal( this.getUnlocalized() );
|
||||
}
|
||||
|
||||
public String getUnlocalized()
|
||||
|
||||
Reference in New Issue
Block a user