Package net.minecraft.server.commands
Class TitleCommand
java.lang.Object
net.minecraft.server.commands.TitleCommand
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static int
clearTitle
(CommandSourceStack source, Collection<ServerPlayer> targets) static void
register
(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> dispatcher, CommandBuildContext context) private static int
resetTitle
(CommandSourceStack source, Collection<ServerPlayer> targets) private static int
setTimes
(CommandSourceStack source, Collection<ServerPlayer> target, int fade, int stay, int fadeOut) private static int
showTitle
(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)
-