public final class TitleMessage extends Object implements com.flowpowered.network.Message
| Modifier and Type | Class and Description |
|---|---|
static class |
TitleMessage.Action |
| Constructor and Description |
|---|
TitleMessage(TitleMessage.Action action)
Creates an instance with no message or times.
|
TitleMessage(TitleMessage.Action action,
int fadeIn,
int stay,
int fadeOut)
Creates an instance with times.
|
TitleMessage(TitleMessage.Action action,
TextMessage text)
Creates an instance with a message.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
static TitleMessage[] |
fromTitle(com.destroystokyo.paper.Title title)
Converts a
Title to 3 instances of TitleMessage. |
TitleMessage.Action |
getAction() |
int |
getFadeIn() |
int |
getFadeOut() |
int |
getStay() |
TextMessage |
getText() |
int |
hashCode() |
String |
toString() |
public TitleMessage(TitleMessage.Action action, TextMessage text)
action - should be TitleMessage.Action.TITLE, TitleMessage.Action.SUBTITLE or TitleMessage.Action.ACTIONtext - the new textpublic TitleMessage(TitleMessage.Action action, int fadeIn, int stay, int fadeOut)
action - should be TitleMessage.Action.TIMESfadeIn - the fade-in duration in ticksstay - the delay between the end of fade-in and the start of fade-out, in ticksfadeOut - the fade-out duration in tickspublic TitleMessage(TitleMessage.Action action)
action - should be TitleMessage.Action.CLEAR or TitleMessage.Action.RESETpublic static TitleMessage[] fromTitle(com.destroystokyo.paper.Title title)
Title to 3 instances of TitleMessage.title - the title to convertpublic TitleMessage.Action getAction()
public TextMessage getText()
public int getFadeIn()
public int getStay()
public int getFadeOut()
public boolean equals(Object o)
public int hashCode()
Copyright © 2021. All rights reserved.