类 TitleCommand
java.lang.Object
net.minecraft.server.commands.TitleCommand
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private static int
clearTitle
(CommandSourceStack pSource, Collection<ServerPlayer> pTargets) static void
register
(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> pDispatcher) 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 p_142784_, Function<Component, Packet<?>> p_142785_)
-
构造器详细资料
-
TitleCommand
public TitleCommand()
-
-
方法详细资料
-
register
-
clearTitle
-
resetTitle
-
showTitle
private static int showTitle(CommandSourceStack pSource, Collection<ServerPlayer> pTargets, Component pTitle, String p_142784_, Function<Component, Packet<?>> p_142785_) throws com.mojang.brigadier.exceptions.CommandSyntaxException- 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
setTimes
private static int setTimes(CommandSourceStack pSource, Collection<ServerPlayer> pTarget, int pFade, int pStay, int pFadeOut)
-