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