类 PublishCommand
java.lang.Object
net.minecraft.server.commands.PublishCommand
-
字段概要
字段修饰符和类型字段说明private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static MutableComponent
getSuccessMessage
(int pPort) private static int
publish
(CommandSourceStack pSource, int pPort, boolean pCheats, GameType pGameMode) static void
register
(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> pDispatcher)
-
字段详细资料
-
ERROR_FAILED
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_FAILED -
ERROR_ALREADY_PUBLISHED
private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_ALREADY_PUBLISHED
-
-
构造器详细资料
-
PublishCommand
public PublishCommand()
-
-
方法详细资料
-
register
-
publish
private static int publish(CommandSourceStack pSource, int pPort, boolean pCheats, @Nullable GameType pGameMode) throws com.mojang.brigadier.exceptions.CommandSyntaxException - 抛出:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
getSuccessMessage
-