public class StringHelper
extends java.lang.Object
| Constructor and Description | 
|---|
StringHelper()  | 
| Modifier and Type | Method and Description | 
|---|---|
static java.lang.String | 
capitalizeString(java.lang.String str)  | 
static java.lang.String[] | 
findValuesAfterKeyBeforeSpace(java.lang.String text,
                             java.lang.String key)
Gets all the text after the  and before the next space in the 
 Will return null if the key is not found
 For example:
 'species:1 type1:fire type2:dark'
 {'1:fire', '2:dark'} 
 | 
static net.minecraft.util.text.ITextComponent | 
getFormattedDuration(long timeMillis)  | 
static net.minecraft.util.text.ITextComponent | 
getFormattedDuration(long timeMillis,
                    boolean fullOutWritten)  | 
static java.lang.String | 
stripSpecialCharacters(java.lang.String in)  | 
static java.lang.String | 
toID(java.lang.String in)  | 
public static java.lang.String[] findValuesAfterKeyBeforeSpace(java.lang.String text,
                                                               java.lang.String key)
text - The text to search throughkey - The key being searched forpublic static java.lang.String stripSpecialCharacters(java.lang.String in)
public static java.lang.String toID(java.lang.String in)
public static net.minecraft.util.text.ITextComponent getFormattedDuration(long timeMillis)
public static net.minecraft.util.text.ITextComponent getFormattedDuration(long timeMillis,
                                                                          boolean fullOutWritten)
public static java.lang.String capitalizeString(java.lang.String str)