public final class CombinedLocalizable extends BukkitLocalizable
Modifier and Type | Method and Description |
---|---|
Localizable |
concat(Localizable localizable)
Concatenates this Localizable with another into a single new one.
|
Localizable |
concat(Localizable localizable,
java.lang.CharSequence separator)
Concatenates this Localizable with another into a single new one.
|
java.lang.String |
getKey()
Gets the key associated with this
Localizable . |
Locale |
getParent()
Gets the parent
Locale of this message. |
java.lang.Object[] |
getReplacementSequences()
Returns an array of objects which will be used to replace wildcard
sequences, in respective order.
|
java.lang.String |
localize(java.lang.String locale)
Attempts to localize this message in the given locale.
|
broadcast, broadcast, broadcast, broadcast, equals, hashCode, localize, localizeFor, localizeFor, localizeFor, sendTo, sendTo, sendTo, sendTo
public java.lang.String getKey()
Localizable
Localizable
.getKey
in interface Localizable
getKey
in class BukkitLocalizable
Localizable
public Locale getParent()
Localizable
Locale
of this message.getParent
in interface Localizable
getParent
in class BukkitLocalizable
Locale
of this messagepublic java.lang.Object[] getReplacementSequences()
Localizable
getReplacementSequences
in interface Localizable
getReplacementSequences
in class BukkitLocalizable
public Localizable concat(Localizable localizable, java.lang.CharSequence separator)
Localizable
concat
in interface Localizable
concat
in class BukkitLocalizable
localizable
- The Localizable to concatenateseparator
- The string to separate the two Localizables with. If
omitted, this will default to a space character.public Localizable concat(Localizable localizable)
Localizable
concat
in interface Localizable
concat
in class BukkitLocalizable
localizable
- The Localizable to concatenatepublic java.lang.String localize(java.lang.String locale)
Localizable
localize
in interface Localizable
localize
in class BukkitLocalizable
locale
- The name of the locale to localize in. This should follow
the ISO 639-1 and ISO 3166-1 standards, respectively (e.g.
en_US or enUS).