public interface Messages
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsKey(String key) |
String |
describeCurrency(double amount) |
String |
describeItem(org.bukkit.inventory.ItemStack item) |
String |
escape(String source) |
String |
formatLevelString(String message,
float amount) |
String |
formatLevelString(String message,
float amount,
float max) |
String |
formatList(String basePath,
Collection<String> nodes,
String nameKey) |
String |
formatPropertyString(String template,
float amount,
float max,
String propertyTemplate)
Similar to getPropertyString, but this one doesn't do the message lookup for you.
|
String |
get(String key) |
String |
get(String key,
String defaultValue) |
List<String> |
getAll(String path) |
Collection<String> |
getAllKeys() |
String |
getCurrency() |
String |
getCurrencyPlural() |
String |
getIfSet(String key) |
String |
getLevelString(String templateName,
float amount) |
String |
getLevelString(String templateName,
float amount,
float max) |
String |
getParameterized(String key,
String paramName,
String paramValue) |
String |
getParameterized(String key,
String paramName1,
String paramValue1,
String paramName2,
String paramValue2) |
String |
getPercentageString(String templateName,
float amount) |
String |
getPropertyString(String templateName,
float amount,
float max,
String propertyTemplateName)
Get a level string that applies a separate template to the value, filling the value into the $property variable.
|
String |
getRandomized(String key) |
String |
getRangeDescription(double range,
String messagesKey) |
String |
getSpace(int pixels)
This relies on the negative space font RP:
https://github.com/AmberWat/NegativeSpaceFont
And specific mappings defined in messages, in the gui.space section
|
String |
getTimeDescription(long time) |
String |
getTimeDescription(long time,
String descriptionType) |
String |
getTimeDescription(long time,
String descriptionType,
String messagesPath) |
boolean containsKey(String key)
String getParameterized(String key, String paramName1, String paramValue1, String paramName2, String paramValue2)
String describeCurrency(double amount)
String getCurrency()
String getCurrencyPlural()
String formatList(String basePath, Collection<String> nodes, String nameKey)
String getPropertyString(String templateName, float amount, float max, String propertyTemplateName)
templateName - The key of the string template, such as "protection.fall", which would have an entry such as
"Protection $roman"amount - The amount of the property to printmax - The max value of the property to print, used in "roman" modepropertyTemplateName - the template to use for formatting the amount, such as "properties.stacked_negative,
which would have an entry such as "+$property".
This is most often used to differentiate between positive and negative values.String formatPropertyString(String template, float amount, float max, String propertyTemplate)
template - The string to escape, such as "Protection $roman"amount - The amount of the property to printmax - The max value of the property to print, used in "roman" modepropertyTemplate - The string to use for property formatting, such as "+&4$property"@Nonnull String getTimeDescription(long time, @Nonnull String descriptionType, @Nullable String messagesPath)
@Nonnull Collection<String> getAllKeys()
Copyright © 2021 elMakers. All rights reserved.