Class TextComponentHelper


  • public class TextComponentHelper
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private TextComponentHelper()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static TextComponent createComponentTranslation​(ICommandSource source, java.lang.String translation, java.lang.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.
      private static boolean isVanillaClient​(ICommandSource sender)  
      • Methods inherited from class java.lang.Object

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

      • TextComponentHelper

        private TextComponentHelper()
    • Method Detail

      • createComponentTranslation

        public static TextComponent createComponentTranslation​(ICommandSource source,
                                                               java.lang.String translation,
                                                               java.lang.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​(ICommandSource sender)