Package net.minecraft.server.commands
Class TitleCommand
java.lang.Object
net.minecraft.server.commands.TitleCommand
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static intclearTitle(CommandSourceStack source, Collection<ServerPlayer> targets) static voidregister(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> dispatcher, CommandBuildContext context) private static intresetTitle(CommandSourceStack source, Collection<ServerPlayer> targets) private static intsetTimes(CommandSourceStack source, Collection<ServerPlayer> target, int fade, int stay, int fadeOut) private static intshowTitle(CommandSourceStack source, Collection<ServerPlayer> targets, Component title, String titleType, Function<Component, Packet<?>> packetGetter)
-
Constructor Details
-
TitleCommand
public TitleCommand()
-
-
Method Details
-
register
public static void register(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> dispatcher, CommandBuildContext context) -
clearTitle
-
resetTitle
-
showTitle
private static int showTitle(CommandSourceStack source, Collection<ServerPlayer> targets, Component title, String titleType, Function<Component, Packet<?>> packetGetter) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
setTimes
private static int setTimes(CommandSourceStack source, Collection<ServerPlayer> target, int fade, int stay, int fadeOut)
-