Class TitleBuilder
java.lang.Object
de.z0rdak.yawp.util.text.TitleBuilder
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionactionbar(net.minecraft.network.chat.Component actionbar) build()fadeIn(int ticks) fadeOut(int ticks) static TitleBuilderof(@NotNull net.minecraft.server.level.ServerPlayer player, @NotNull IProtectedRegion region) voidsend()stay(int ticks) subtitle(net.minecraft.network.chat.Component subtitle) Sets subtitle to “Welcome to {region}, {player}” (gold).timings(int fadeIn, int stay, int fadeOut) title(@NotNull net.minecraft.network.chat.Component title) Sets title to the region’s name (yellow).
-
Method Details
-
of
public static TitleBuilder of(@NotNull @NotNull net.minecraft.server.level.ServerPlayer player, @NotNull @NotNull IProtectedRegion region) -
title
-
subtitle
-
actionbar
-
fadeIn
-
stay
-
fadeOut
-
timings
-
titleRegionName
Sets title to the region’s name (yellow). -
subtitleWelcome
Sets subtitle to “Welcome to {region}, {player}” (gold). -
subtitleBye
-
build
-
send
public void send()
-