Object LangUtils

  • All Implemented Interfaces:

    
    public class LangUtils
    
                        

    语言文件相关工具类

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final static LangUtils INSTANCE
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static Unit sendLang(CommandSender $self, String key) 发送消息
      final static Unit sendLang(CommandSender $self, String key, Map<String, String> param) 发送消息
      final static String getLang(String key) 获取消息 未来会适配多语言, 当前版本无意义
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • sendLang

         final static Unit sendLang(CommandSender $self, String key)

        发送消息

        Parameters:
        key - config
      • getLang

         final static String getLang(String key)

        获取消息 未来会适配多语言, 当前版本无意义

        Parameters:
        key - config