Package net.minecraft.server.commands
Class RandomCommand
java.lang.Object
net.minecraft.server.commands.RandomCommand
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSourceStack>
drawRandomValueTree
(String p_299144_, boolean p_298789_) private static int
randomSample
(CommandSourceStack p_299745_, MinMaxBounds.Ints p_299529_, ResourceLocation p_301238_, boolean p_298006_) static void
register
(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_300897_) private static int
resetAllSequences
(CommandSourceStack p_299139_) private static int
resetAllSequencesAndSetNewDefaults
(CommandSourceStack p_299873_, int p_300494_, boolean p_300184_, boolean p_297446_) private static int
resetSequence
(CommandSourceStack p_300119_, ResourceLocation p_298199_) private static int
resetSequence
(CommandSourceStack p_298149_, ResourceLocation p_299177_, int p_300974_, boolean p_298057_, boolean p_300002_) private static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
suggestRandomSequence
(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_297521_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_299165_)
-
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
-
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
-
resetAllSequencesAndSetNewDefaults
private static int resetAllSequencesAndSetNewDefaults(CommandSourceStack p_299873_, int p_300494_, boolean p_300184_, boolean p_297446_)
-