Package org.kingdoms.locale.provider
Class MessageBuilder
java.lang.Object
org.kingdoms.locale.compiler.placeholders.PlaceholderContextBuilder
org.kingdoms.locale.provider.MessageBuilder
- All Implemented Interfaces:
Cloneable,PlaceholderContextProvider
-
Field Summary
FieldsFields inherited from class org.kingdoms.locale.compiler.placeholders.PlaceholderContextBuilder
groupedPlaceholders, main, placeholders, relationalSecondFields inherited from interface org.kingdoms.locale.compiler.placeholders.PlaceholderContextProvider
EMPTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAllIfAbsent(Map<String, Object> placeholders) clone()@NonNull SupportedLanguagelang(SupportedLanguage lang) other(org.bukkit.entity.Player other) placeholders(Object... edits) toString()usePrefix(boolean usePrefix) viewer(KingdomPlayer kp) withContext(org.bukkit.command.CommandSender sender) withContext(org.bukkit.entity.Player player) withContext(org.bukkit.OfflinePlayer player) withContext(Group group) withContext(Kingdom kingdom) withContext(Nation nation) Methods inherited from class org.kingdoms.locale.compiler.placeholders.PlaceholderContextBuilder
addGroupedPlaceholder, canHandleRelational, getPlaceholder, getPlaceholders, hasContext, processPlaceholder, switchContext
-
Field Details
-
ignoreColors
public boolean ignoreColors -
usePrefix
-
DEFAULT
-
-
Constructor Details
-
MessageBuilder
public MessageBuilder()
-
-
Method Details
-
placeholders
- Overrides:
placeholdersin classPlaceholderContextBuilder
-
viewer
-
lang
-
getLanguage
-
inheritPlaceholders
- Overrides:
inheritPlaceholdersin classPlaceholderContextBuilder
-
inheritContext
- Overrides:
inheritContextin classPlaceholderContextBuilder
-
addAll
- Overrides:
addAllin classPlaceholderContextBuilder
-
addAll
-
addAllIfAbsent
- Overrides:
addAllIfAbsentin classPlaceholderContextBuilder
-
raws
- Overrides:
rawsin classPlaceholderContextBuilder
-
usePrefix
-
usePrefix
-
ignoreColors
-
dontIgnoreColors
-
withContext
- Overrides:
withContextin classPlaceholderContextBuilder
-
withContext
- Overrides:
withContextin classPlaceholderContextBuilder
-
withContext
- Overrides:
withContextin classPlaceholderContextBuilder
-
withContext
- Overrides:
withContextin classPlaceholderContextBuilder
-
withContext
- Overrides:
withContextin classPlaceholderContextBuilder
-
withContext
- Overrides:
withContextin classPlaceholderContextBuilder
-
other
- Overrides:
otherin classPlaceholderContextBuilder
-
other
- Overrides:
otherin classPlaceholderContextBuilder
-
resetPlaceholders
- Overrides:
resetPlaceholdersin classPlaceholderContextBuilder
-
parse
- Overrides:
parsein classPlaceholderContextBuilder
-
raw
- Overrides:
rawin classPlaceholderContextBuilder
-
toString
- Overrides:
toStringin classPlaceholderContextBuilder
-
clone
- Overrides:
clonein classPlaceholderContextBuilder
-