25 lines
523 B
Java
25 lines
523 B
Java
|
package appeng.core.localization;
|
||
|
|
||
|
import net.minecraft.util.ChatMessageComponent;
|
||
|
import appeng.core.AELog;
|
||
|
|
||
|
public enum PlayerMessages
|
||
|
{
|
||
|
ChestCannotReadStorageCell, InvalidMachine, LoadedSettings, SavedSettings, MachineNotPowered;
|
||
|
|
||
|
private PlayerMessages() {
|
||
|
AELog.localization( "chat", getName() );
|
||
|
}
|
||
|
|
||
|
String getName()
|
||
|
{
|
||
|
return "chat.appliedenergistics2." + toString();
|
||
|
}
|
||
|
|
||
|
public ChatMessageComponent get()
|
||
|
{
|
||
|
return ChatMessageComponent.createFromTranslationKey( getName() );
|
||
|
}
|
||
|
|
||
|
}
|