public class TextComponentHelper
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
private |
TextComponentHelper() |
Modifier and Type | Method and Description |
---|---|
static TextComponentBase |
createComponentTranslation(ICommandSender sender,
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(ICommandSender sender) |
public static TextComponentBase createComponentTranslation(ICommandSender sender, java.lang.String translation, java.lang.Object... args)
private static boolean isVanillaClient(ICommandSender sender)