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_295018_)
    • drawRandomValueTree

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

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

      private static int randomSample(CommandSourceStack p_295774_, MinMaxBounds.Ints p_295453_, @Nullable ResourceLocation p_294336_, boolean p_296222_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • resetSequence

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

      private static int resetSequence(CommandSourceStack p_296416_, ResourceLocation p_294611_, int p_295199_, boolean p_295241_, boolean p_294844_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
    • resetAllSequences

      private static int resetAllSequences(CommandSourceStack p_294291_)
    • resetAllSequencesAndSetNewDefaults

      private static int resetAllSequencesAndSetNewDefaults(CommandSourceStack p_294151_, int p_295754_, boolean p_294405_, boolean p_294396_)