Class RandomCommand

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

public class RandomCommand extends Object
  • Field Details

    • ERROR_RANGE_TOO_LARGE

      private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_RANGE_TOO_LARGE
    • ERROR_RANGE_TOO_SMALL

      private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_RANGE_TOO_SMALL
  • Constructor Details

    • RandomCommand

      public RandomCommand()
  • Method Details

    • register

      public static void register(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_300897_)
    • drawRandomValueTree

      private static com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSourceStack> drawRandomValueTree(String p_299144_, boolean p_298789_)
    • suggestRandomSequence

      private static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestRandomSequence(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_297521_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_299165_)
    • randomSample

      private static int randomSample(CommandSourceStack p_299745_, MinMaxBounds.Ints p_299529_, @Nullable ResourceLocation p_301238_, boolean p_298006_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • resetSequence

      private static int resetSequence(CommandSourceStack p_300119_, ResourceLocation p_298199_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • resetSequence

      private static int resetSequence(CommandSourceStack p_298149_, ResourceLocation p_299177_, int p_300974_, boolean p_298057_, boolean p_300002_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • resetAllSequences

      private static int resetAllSequences(CommandSourceStack p_299139_)
    • resetAllSequencesAndSetNewDefaults

      private static int resetAllSequencesAndSetNewDefaults(CommandSourceStack p_299873_, int p_300494_, boolean p_300184_, boolean p_297446_)