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_299144_, boolean p_298789_) private static intrandomSample(CommandSourceStack p_299745_, MinMaxBounds.Ints p_299529_, ResourceLocation p_301238_, boolean p_298006_) static voidregister(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> p_300897_) private static intresetAllSequences(CommandSourceStack p_299139_) private static intresetAllSequencesAndSetNewDefaults(CommandSourceStack p_299873_, int p_300494_, boolean p_300184_, boolean p_297446_) private static intresetSequence(CommandSourceStack p_300119_, ResourceLocation p_298199_) private static intresetSequence(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_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_299144_, boolean p_298789_) 
- 
suggestRandomSequenceprivate static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestRandomSequence(com.mojang.brigadier.context.CommandContext<CommandSourceStack> p_297521_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_299165_) 
- 
randomSampleprivate 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
 
- 
resetSequenceprivate static int resetSequence(CommandSourceStack p_300119_, ResourceLocation p_298199_) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
- com.mojang.brigadier.exceptions.CommandSyntaxException
 
- 
resetSequenceprivate 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
- 
resetAllSequencesAndSetNewDefaultsprivate static int resetAllSequencesAndSetNewDefaults(CommandSourceStack p_299873_, int p_300494_, boolean p_300184_, boolean p_297446_) 
 
-