public final class LCTitleBuilder extends Object
| Modifier and Type | Method and Description |
|---|---|
LCPacketTitle |
build()
Take all the inputs from the builder and convert
it into a single LCPacketTitle you can use to
save and send to players as needed.
|
LCTitleBuilder |
displayFor(java.time.Duration duration)
Specify the display time for which this
title will be displayed to the user.
|
LCTitleBuilder |
fadeInFor(java.time.Duration duration)
Specify the amount of time it takes
the title to fade in for the user.
|
LCTitleBuilder |
fadeOutFor(java.time.Duration duration)
Specify the amount of time it takes
the title to fade out for the user.
|
static LCTitleBuilder |
of(String message)
Create a LCTitle with a message.
|
static LCTitleBuilder |
of(String message,
TitleType type)
Create a LCTitle by type and message.
|
LCTitleBuilder |
scale(float scale)
Scale up or down the title sent to the client.
|
LCPacketTitle |
sendAndBuild(org.bukkit.entity.Player... players)
Builds the current packet and sends it to all players required.
|
LCTitleBuilder |
type(TitleType type)
Specify the
TitleType for the title to be displayed. |
public static LCTitleBuilder of(String message, TitleType type)
message - The message that will be displayed.type - The TitleType to send to the clientpublic static LCTitleBuilder of(String message)
message - The message to display to the user.public LCTitleBuilder type(TitleType type)
TitleType for the title to be displayed.type - The type of type to display.public LCTitleBuilder scale(float scale)
scale - The new scale (greater than 0) that the message will be displayed on.public LCTitleBuilder displayFor(java.time.Duration duration)
duration - The Duration of how long to display the title for.public LCTitleBuilder fadeInFor(java.time.Duration duration)
duration - The Duration of how long to fade in the title for.public LCTitleBuilder fadeOutFor(java.time.Duration duration)
duration - The Duration of how long to fade in the title for.public LCPacketTitle build()
LCPacketTitle to send to Lunar Client users as needed.public LCPacketTitle sendAndBuild(org.bukkit.entity.Player... players)
players - All the Player that need to see the title.LCPacketTitle generated that can be used later if needed.Copyright © 2021. All rights reserved.