Package net.minecraft.server.commands
Class RandomCommand
java.lang.Object
net.minecraft.server.commands.RandomCommand
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprivate static com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSourceStack>drawRandomValueTree(String p_295419_, boolean p_295785_) private static intrandomSample(CommandSourceStack p_295774_, MinMaxBounds.Ints p_295453_, ResourceLocation p_294336_, boolean p_296222_) static voidregister(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_295018_) private static intresetAllSequences(CommandSourceStack p_294291_) private static intresetAllSequencesAndSetNewDefaults(CommandSourceStack p_294151_, int p_295754_, boolean p_294405_, boolean p_294396_) private static intresetSequence(CommandSourceStack p_295984_, ResourceLocation p_296220_) private static intresetSequence(CommandSourceStack p_296416_, ResourceLocation p_294611_, int p_295199_, boolean p_295241_, boolean p_294844_) private static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>suggestRandomSequence(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_296223_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_295797_) 
- 
Field Details- 
ERROR_RANGE_TOO_LARGEprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_RANGE_TOO_LARGE
- 
ERROR_RANGE_TOO_SMALLprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType ERROR_RANGE_TOO_SMALL
 
- 
- 
Constructor Details- 
RandomCommandpublic RandomCommand()
 
- 
- 
Method Details- 
register
- 
drawRandomValueTreeprivate static com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSourceStack> drawRandomValueTree(String p_295419_, boolean p_295785_) 
- 
suggestRandomSequenceprivate static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestRandomSequence(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_296223_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_295797_) 
- 
randomSampleprivate 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
 
- 
resetSequenceprivate static int resetSequence(CommandSourceStack p_295984_, ResourceLocation p_296220_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
- com.mojang.brigadier.exceptions.CommandSyntaxException
 
- 
resetSequenceprivate 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
- 
resetAllSequencesAndSetNewDefaultsprivate static int resetAllSequencesAndSetNewDefaults(CommandSourceStack p_294151_, int p_295754_, boolean p_294405_, boolean p_294396_) 
 
-