Class StringHelper
java.lang.Object
com.pixelmonmod.pixelmon.api.util.helpers.StringHelper
Static helper class for functions in relation to Strings
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
capitalizeString
(String str) static String[]
findValuesAfterKeyBeforeSpace
(String text, 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.network.chat.MutableComponent
getFormattedDuration
(long timeMillis) static net.minecraft.network.chat.MutableComponent
getFormattedDuration
(long timeMillis, boolean fullOutWritten) static String
static String
-
Constructor Details
-
StringHelper
public StringHelper()
-
-
Method Details
-
findValuesAfterKeyBeforeSpace
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'}- Parameters:
text
- The text to search throughkey
- The key being searched for- Returns:
- The text after the key before the next space
-
stripSpecialCharacters
-
toID
-
getFormattedDuration
public static net.minecraft.network.chat.MutableComponent getFormattedDuration(long timeMillis) -
getFormattedDuration
public static net.minecraft.network.chat.MutableComponent getFormattedDuration(long timeMillis, boolean fullOutWritten) -
capitalizeString
-