Package net.minecraft.server.commands
Class PublishCommand
java.lang.Object
net.minecraft.server.commands.PublishCommand
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final com.mojang.brigadier.exceptions.DynamicCommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic MutableComponentgetSuccessMessage(int p_259532_) private static intpublish(CommandSourceStack p_260117_, int p_259411_, boolean p_260137_, GameType p_259145_) static voidregister(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_138185_) 
- 
Field Details- 
ERROR_FAILEDprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_FAILED
- 
ERROR_ALREADY_PUBLISHEDprivate static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType ERROR_ALREADY_PUBLISHED
 
- 
- 
Constructor Details- 
PublishCommandpublic PublishCommand()
 
- 
- 
Method Details- 
register
- 
publishprivate static int publish(CommandSourceStack p_260117_, int p_259411_, boolean p_260137_, @Nullable GameType p_259145_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
- com.mojang.brigadier.exceptions.CommandSyntaxException
 
- 
getSuccessMessage
 
-