Package net.minecraft.server.commands
Class RandomCommand
java.lang.Object
net.minecraft.server.commands.RandomCommand
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionTypeprivate static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static com.mojang.brigadier.builder.LiteralArgumentBuilder<CommandSourceStack> drawRandomValueTree(String pSubcommand, boolean pDisplayResult) private static intrandomSample(CommandSourceStack pSource, MinMaxBounds.Ints pRange, ResourceLocation pSequence, boolean pDisplayResult) static voidregister(com.mojang.brigadier.CommandDispatcher<CommandSourceStack> pDispatcher) private static intresetAllSequences(CommandSourceStack pSource) private static intresetAllSequencesAndSetNewDefaults(CommandSourceStack pSource, int pSeed, boolean pIncludeWorldSeed, boolean pIncludeSequenceId) private static intresetSequence(CommandSourceStack pSource, ResourceLocation pSequence) private static intresetSequence(CommandSourceStack pSource, ResourceLocation pSequence, int pSeed, boolean pIncludeWorldSeed, boolean pIncludeSequenceId) private static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestRandomSequence(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext, com.mojang.brigadier.suggestion.SuggestionsBuilder pSuggestionsBuilder)
-
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 pSubcommand, boolean pDisplayResult) -
suggestRandomSequence
private static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestRandomSequence(com.mojang.brigadier.context.CommandContext<CommandSourceStack> pContext, com.mojang.brigadier.suggestion.SuggestionsBuilder pSuggestionsBuilder) -
randomSample
private static int randomSample(CommandSourceStack pSource, MinMaxBounds.Ints pRange, @Nullable ResourceLocation pSequence, boolean pDisplayResult) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
resetSequence
private static int resetSequence(CommandSourceStack pSource, ResourceLocation pSequence) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
resetSequence
private static int resetSequence(CommandSourceStack pSource, ResourceLocation pSequence, int pSeed, boolean pIncludeWorldSeed, boolean pIncludeSequenceId) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
resetAllSequences
-
resetAllSequencesAndSetNewDefaults
private static int resetAllSequencesAndSetNewDefaults(CommandSourceStack pSource, int pSeed, boolean pIncludeWorldSeed, boolean pIncludeSequenceId)
-