Modifier and Type | Class and Description |
---|---|
static class |
TextTitle.Builder |
Modifier and Type | Method and Description |
---|---|
boolean |
areTimesSet()
Determines whether or not this title has times set on it.
|
static TextTitle.Builder |
builder()
Creates a new builder for constructing titles.
|
boolean |
equals(@Nullable Object o) |
int |
getFadeIn()
Returns the number of ticks over which this title will fade in.
|
int |
getFadeOut()
Returns the number of ticks over which this title will fade out.
|
int |
getStay()
Returns the number of ticks this title will stay up.
|
Optional<Component> |
getSubtitle()
Returns the subtitle this title has, if any.
|
Optional<Component> |
getTitle()
Returns the main title this title has, if any.
|
int |
hashCode() |
boolean |
isResetBeforeSend()
Returns whether or not a reset packet will be sent before this title is sent.
|
TextTitle.Builder |
toBuilder()
Creates a new builder from the contents of this title so that it may be changed.
|
String |
toString() |
public Optional<Component> getTitle()
public Optional<Component> getSubtitle()
public int getStay()
public int getFadeIn()
public int getFadeOut()
public boolean isResetBeforeSend()
public boolean areTimesSet()
public TextTitle.Builder toBuilder()
public static TextTitle.Builder builder()