类 TextComponentHelper

java.lang.Object
net.minecraftforge.server.command.TextComponentHelper

public class TextComponentHelper extends Object
  • 构造器详细资料

    • TextComponentHelper

      private TextComponentHelper()
  • 方法详细资料

    • createComponentTranslation

      public static MutableComponent createComponentTranslation(CommandSource source, String translation, Object... args)
      Detects when sending to a vanilla client and falls back to sending english, since they don't have the lang data necessary to translate on the client.
    • isVanillaClient

      private static boolean isVanillaClient(CommandSource sender)