@Nonnull @Immutable public final class JukeboxPopupMessage extends Object implements ParameterMessage
Message.Type| Constructor and Description |
|---|
JukeboxPopupMessage(String message,
boolean needsTranslating,
Collection<String> captions)
Constructs a popup message.
|
JukeboxPopupMessage(String message,
boolean needsTranslating,
String... captions)
Constructs a popup message.
|
JukeboxPopupMessage(String message,
Collection<String> captions)
Constructs a popup message.
|
JukeboxPopupMessage(String message,
String... captions)
Constructs a popup message.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
String |
getMessage()
Returns this popup's message.
|
String[] |
getParameters()
Returns this popup's captions.
|
Message.Type |
getType() |
int |
hashCode() |
boolean |
needsTranslating() |
String |
toString() |
public JukeboxPopupMessage(@Nonnull String message, @Nonnull String... captions)
message - the message to display in the popupcaptions - the captions to use for this popuppublic JukeboxPopupMessage(@Nonnull String message, @Nonnull Collection<String> captions)
message - the message to display in the popupcaptions - the captions to use for this popuppublic JukeboxPopupMessage(@Nonnull String message, boolean needsTranslating, @Nonnull Collection<String> captions)
message - the message to display in the popupneedsTranslating - needs translating client sidecaptions - the captions to use for this popuppublic JukeboxPopupMessage(@Nonnull String message, boolean needsTranslating, @Nonnull String... captions)
message - the message to display in the popupneedsTranslating - needs translating client sidecaptions - the captions to use for this popuppublic String getMessage()
getMessage in interface Messagepublic Message.Type getType()
public boolean needsTranslating()
needsTranslating in interface Messagepublic String[] getParameters()
getParameters in interface ParameterMessageCopyright © 2017–2020 NukkitX. All rights reserved.