protected static class GlowVanillaCommand.CommandMessages extends Object
Constructor and Description |
---|
CommandMessages(ResourceBundle bundle,
String description,
String usageMessage,
String permissionMessage) |
Modifier and Type | Method and Description |
---|---|
String |
getDescription() |
LocalizedString |
getGeneric(GlowVanillaCommand.GenericMessage which) |
String |
getJoiner() |
Locale |
getLocale() |
String |
getPermissionMessage() |
ResourceBundle |
getResourceBundle() |
String |
getUsageMessage() |
String |
joinList(CharSequence... objects)
Returns the given items as a comma-separated list.
|
String |
joinList(Iterable<? extends CharSequence> objects)
Returns the given items as a comma-separated list.
|
String |
joinList(Stream<? extends CharSequence> objects)
Returns the given items as a comma-separated list.
|
public CommandMessages(ResourceBundle bundle, String description, String usageMessage, String permissionMessage)
public LocalizedString getGeneric(GlowVanillaCommand.GenericMessage which)
public String joinList(Iterable<? extends CharSequence> objects)
objects
- the items to format as a listpublic String joinList(Stream<? extends CharSequence> objects)
objects
- the items to format as a listpublic String joinList(CharSequence... objects)
objects
- the items to format as a listpublic Locale getLocale()
public ResourceBundle getResourceBundle()
public String getDescription()
public String getUsageMessage()
public String getPermissionMessage()
public String getJoiner()
Copyright © 2021. All rights reserved.