Class TextComponentHelper
- java.lang.Object
-
- net.minecraftforge.server.command.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)
-
-
-
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)
-
-