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 pSource, Collection<ServerPlayer> pTargets) static void
register
(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_139103_, CommandBuildContext p_324289_) private static int
resetTitle
(CommandSourceStack pSource, Collection<ServerPlayer> pTargets) private static int
setTimes
(CommandSourceStack pSource, Collection<ServerPlayer> pTarget, int pFade, int pStay, int pFadeOut) private static int
showTitle
(CommandSourceStack pSource, Collection<ServerPlayer> pTargets, Component pTitle, String pTitleType, Function<Component, Packet<?>> pPacketGetter)
-
Constructor Details
-
TitleCommand
public TitleCommand()
-
-
Method Details
-
register
public static void register(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_139103_, CommandBuildContext p_324289_) -
clearTitle
-
resetTitle
-
showTitle
private static int showTitle(CommandSourceStack pSource, Collection<ServerPlayer> pTargets, Component pTitle, String pTitleType, Function<Component, Packet<?>> pPacketGetter) throws com.mojang.brigadier.exceptions.CommandSyntaxException- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
setTimes
private static int setTimes(CommandSourceStack pSource, Collection<ServerPlayer> pTarget, int pFade, int pStay, int pFadeOut)
-