Package net.minecraft.server.command
Class RandomCommand
java.lang.Object
net.minecraft.server.command.RandomCommand
- Mappings:
Namespace Name official ahpintermediary net/minecraft/class_8602named net/minecraft/server/command/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<ServerCommandSource>method_52326(String argumentName, boolean roll) static voidregister(com.mojang.brigadier.CommandDispatcher<ServerCommandSource> dispatcher) private static intreset(ServerCommandSource source, Identifier sequenceId) private static intreset(ServerCommandSource source, Identifier sequenceId, int salt, boolean includeWorldSeed, boolean includeSequenceId) private static intresetAll(ServerCommandSource source) private static intresetAll(ServerCommandSource source, int salt, boolean includeWorldSeed, boolean includeSequenceId) private static intsample(ServerCommandSource source, NumberRange.IntRange range, @Nullable Identifier sequenceId, boolean roll) private static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>suggestSequences(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, com.mojang.brigadier.suggestion.SuggestionsBuilder suggestionsBuilder)
-
Field Details
-
RANGE_TOO_LARGE_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType RANGE_TOO_LARGE_EXCEPTION- Mappings:
Namespace Name Mixin selector official aLahp;a:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;intermediary field_44983Lnet/minecraft/class_8602;field_44983:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;named RANGE_TOO_LARGE_EXCEPTIONLnet/minecraft/server/command/RandomCommand;RANGE_TOO_LARGE_EXCEPTION:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
-
RANGE_TOO_SMALL_EXCEPTION
private static final com.mojang.brigadier.exceptions.SimpleCommandExceptionType RANGE_TOO_SMALL_EXCEPTION- Mappings:
Namespace Name Mixin selector official bLahp;b:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;intermediary field_44984Lnet/minecraft/class_8602;field_44984:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;named RANGE_TOO_SMALL_EXCEPTIONLnet/minecraft/server/command/RandomCommand;RANGE_TOO_SMALL_EXCEPTION:Lcom/mojang/brigadier/exceptions/SimpleCommandExceptionType;
-
-
Constructor Details
-
RandomCommand
public RandomCommand()
-
-
Method Details
-
register
- Mappings:
Namespace Name Mixin selector official aLahp;a(Lcom/mojang/brigadier/CommandDispatcher;)Vintermediary method_52318Lnet/minecraft/class_8602;method_52318(Lcom/mojang/brigadier/CommandDispatcher;)Vnamed registerLnet/minecraft/server/command/RandomCommand;register(Lcom/mojang/brigadier/CommandDispatcher;)V
-
method_52326
private static com.mojang.brigadier.builder.LiteralArgumentBuilder<ServerCommandSource> method_52326(String argumentName, boolean roll) - Mappings:
Namespace Name Mixin selector official aLahp;a(Ljava/lang/String;Z)Lcom/mojang/brigadier/builder/LiteralArgumentBuilder;intermediary method_52326Lnet/minecraft/class_8602;method_52326(Ljava/lang/String;Z)Lcom/mojang/brigadier/builder/LiteralArgumentBuilder;named method_52326Lnet/minecraft/server/command/RandomCommand;method_52326(Ljava/lang/String;Z)Lcom/mojang/brigadier/builder/LiteralArgumentBuilder;
-
suggestSequences
private static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestSequences(com.mojang.brigadier.context.CommandContext<ServerCommandSource> context, com.mojang.brigadier.suggestion.SuggestionsBuilder suggestionsBuilder) - Mappings:
Namespace Name Mixin selector official aLahp;a(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;intermediary method_52320Lnet/minecraft/class_8602;method_52320(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;named suggestSequencesLnet/minecraft/server/command/RandomCommand;suggestSequences(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
-
sample
private static int sample(ServerCommandSource source, NumberRange.IntRange range, @Nullable @Nullable Identifier sequenceId, boolean roll) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector official aLahp;a(Lds;Lcj$d;Laep;Z)Iintermediary method_52325Lnet/minecraft/class_8602;method_52325(Lnet/minecraft/class_2168;Lnet/minecraft/class_2096$class_2100;Lnet/minecraft/class_2960;Z)Inamed sampleLnet/minecraft/server/command/RandomCommand;sample(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/predicate/NumberRange$IntRange;Lnet/minecraft/util/Identifier;Z)I
-
reset
private static int reset(ServerCommandSource source, Identifier sequenceId) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector official aLahp;a(Lds;Laep;)Iintermediary method_52323Lnet/minecraft/class_8602;method_52323(Lnet/minecraft/class_2168;Lnet/minecraft/class_2960;)Inamed resetLnet/minecraft/server/command/RandomCommand;reset(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/util/Identifier;)I
-
reset
private static int reset(ServerCommandSource source, Identifier sequenceId, int salt, boolean includeWorldSeed, boolean includeSequenceId) throws com.mojang.brigadier.exceptions.CommandSyntaxException - Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException- Mappings:
Namespace Name Mixin selector official aLahp;a(Lds;Laep;IZZ)Iintermediary method_52324Lnet/minecraft/class_8602;method_52324(Lnet/minecraft/class_2168;Lnet/minecraft/class_2960;IZZ)Inamed resetLnet/minecraft/server/command/RandomCommand;reset(Lnet/minecraft/server/command/ServerCommandSource;Lnet/minecraft/util/Identifier;IZZ)I
-
resetAll
- Mappings:
Namespace Name Mixin selector official aLahp;a(Lds;)Iintermediary method_52321Lnet/minecraft/class_8602;method_52321(Lnet/minecraft/class_2168;)Inamed resetAllLnet/minecraft/server/command/RandomCommand;resetAll(Lnet/minecraft/server/command/ServerCommandSource;)I
-
resetAll
private static int resetAll(ServerCommandSource source, int salt, boolean includeWorldSeed, boolean includeSequenceId) - Mappings:
Namespace Name Mixin selector official aLahp;a(Lds;IZZ)Iintermediary method_52322Lnet/minecraft/class_8602;method_52322(Lnet/minecraft/class_2168;IZZ)Inamed resetAllLnet/minecraft/server/command/RandomCommand;resetAll(Lnet/minecraft/server/command/ServerCommandSource;IZZ)I
-