Class PublishCommand

java.lang.Object
net.minecraft.server.commands.PublishCommand

public class PublishCommand extends Object
  • Field Details

    • 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
  • Constructor Details

    • PublishCommand

      public PublishCommand()
  • Method Details

    • register

      public static void register(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_138185_)
    • publish

      private 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

      public static MutableComponent getSuccessMessage(int p_259532_)