Package net.minecraft.client.network
Class ClientCommandSource
java.lang.Object
net.minecraft.client.network.ClientCommandSource
- All Implemented Interfaces:
- CommandSource
- Mappings:
- Namespace - Name - official - fez- intermediary - net/minecraft/class_637- named - net/minecraft/client/network/ClientCommandSource
- 
Nested Class SummaryNested classes/interfaces inherited from interface net.minecraft.command.CommandSourceCommandSource.RelativePosition, CommandSource.SuggestedIdType
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final MinecraftClientprivate intprivate final ClientPlayNetworkHandlerprivate @Nullable CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
- 
Constructor SummaryConstructorsConstructorDescriptionClientCommandSource(ClientPlayNetworkHandler networkHandler, MinecraftClient client) 
- 
Method SummaryModifier and TypeMethodDescriptionprivate static Stringformat(double d) private static Stringformat(int i) CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>getCompletions(com.mojang.brigadier.context.CommandContext<?> context) booleanhasPermissionLevel(int level) CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>listIdSuggestions(RegistryKey<? extends Registry<?>> registryRef, CommandSource.SuggestedIdType suggestedIdType, com.mojang.brigadier.suggestion.SuggestionsBuilder builder, com.mojang.brigadier.context.CommandContext<?> context) voidonChatSuggestions(ChatSuggestionsS2CPacket.Action action, List<String> suggestions) voidonCommandSuggestions(int completionId, com.mojang.brigadier.suggestion.Suggestions suggestions) Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.command.CommandSourcesuggestIdentifiers
- 
Field Details- 
networkHandler- Mappings:
- Namespace - Name - Mixin selector - official - a- Lfez;a:Lfex;- intermediary - field_3722- Lnet/minecraft/class_637;field_3722:Lnet/minecraft/class_634;- named - networkHandler- Lnet/minecraft/client/network/ClientCommandSource;networkHandler:Lnet/minecraft/client/network/ClientPlayNetworkHandler;
 
- 
client- Mappings:
- Namespace - Name - Mixin selector - official - b- Lfez;b:Lenn;- intermediary - field_3725- Lnet/minecraft/class_637;field_3725:Lnet/minecraft/class_310;- named - client- Lnet/minecraft/client/network/ClientCommandSource;client:Lnet/minecraft/client/MinecraftClient;
 
- 
completionIdprivate int completionId- Mappings:
- Namespace - Name - Mixin selector - official - c- Lfez;c:I- intermediary - field_3724- Lnet/minecraft/class_637;field_3724:I- named - completionId- Lnet/minecraft/client/network/ClientCommandSource;completionId:I
 
- 
pendingCommandCompletion@Nullable private @Nullable CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> pendingCommandCompletion- Mappings:
- Namespace - Name - Mixin selector - official - d- Lfez;d:Ljava/util/concurrent/CompletableFuture;- intermediary - field_3723- Lnet/minecraft/class_637;field_3723:Ljava/util/concurrent/CompletableFuture;- named - pendingCommandCompletion- Lnet/minecraft/client/network/ClientCommandSource;pendingCommandCompletion:Ljava/util/concurrent/CompletableFuture;
 
- 
chatSuggestions- Mappings:
- Namespace - Name - Mixin selector - official - e- Lfez;e:Ljava/util/Set;- intermediary - field_39794- Lnet/minecraft/class_637;field_39794:Ljava/util/Set;- named - chatSuggestions- Lnet/minecraft/client/network/ClientCommandSource;chatSuggestions:Ljava/util/Set;
 
 
- 
- 
Constructor Details- 
ClientCommandSource- Mappings:
- Namespace - Name - Mixin selector - official - <init>- Lfez;<init>(Lfex;Lenn;)V- intermediary - <init>- Lnet/minecraft/class_637;<init>(Lnet/minecraft/class_634;Lnet/minecraft/class_310;)V- named - <init>- Lnet/minecraft/client/network/ClientCommandSource;<init>(Lnet/minecraft/client/network/ClientPlayNetworkHandler;Lnet/minecraft/client/MinecraftClient;)V
 
 
- 
- 
Method Details- 
getPlayerNames- Specified by:
- getPlayerNamesin interface- CommandSource
- Mappings:
- Namespace - Name - Mixin selector - official - q- Ldu;q()Ljava/util/Collection;- intermediary - method_9262- Lnet/minecraft/class_2172;method_9262()Ljava/util/Collection;- named - getPlayerNames- Lnet/minecraft/command/CommandSource;getPlayerNames()Ljava/util/Collection;
 
- 
getChatSuggestions- Specified by:
- getChatSuggestionsin interface- CommandSource
- Mappings:
- Namespace - Name - Mixin selector - official - x- Ldu;x()Ljava/util/Collection;- intermediary - method_44750- Lnet/minecraft/class_2172;method_44750()Ljava/util/Collection;- named - getChatSuggestions- Lnet/minecraft/command/CommandSource;getChatSuggestions()Ljava/util/Collection;
 
- 
getEntitySuggestions- Specified by:
- getEntitySuggestionsin interface- CommandSource
- Mappings:
- Namespace - Name - Mixin selector - official - y- Ldu;y()Ljava/util/Collection;- intermediary - method_9269- Lnet/minecraft/class_2172;method_9269()Ljava/util/Collection;- named - getEntitySuggestions- Lnet/minecraft/command/CommandSource;getEntitySuggestions()Ljava/util/Collection;
 
- 
getTeamNames- Specified by:
- getTeamNamesin interface- CommandSource
- Mappings:
- Namespace - Name - Mixin selector - official - r- Ldu;r()Ljava/util/Collection;- intermediary - method_9267- Lnet/minecraft/class_2172;method_9267()Ljava/util/Collection;- named - getTeamNames- Lnet/minecraft/command/CommandSource;getTeamNames()Ljava/util/Collection;
 
- 
getSoundIds- Specified by:
- getSoundIdsin interface- CommandSource
- Mappings:
- Namespace - Name - Mixin selector - official - s- Ldu;s()Ljava/util/stream/Stream;- intermediary - method_9254- Lnet/minecraft/class_2172;method_9254()Ljava/util/stream/Stream;- named - getSoundIds- Lnet/minecraft/command/CommandSource;getSoundIds()Ljava/util/stream/Stream;
 
- 
getRecipeIds- Specified by:
- getRecipeIdsin interface- CommandSource
- Mappings:
- Namespace - Name - Mixin selector - official - t- Ldu;t()Ljava/util/stream/Stream;- intermediary - method_9273- Lnet/minecraft/class_2172;method_9273()Ljava/util/stream/Stream;- named - getRecipeIds- Lnet/minecraft/command/CommandSource;getRecipeIds()Ljava/util/stream/Stream;
 
- 
hasPermissionLevelpublic boolean hasPermissionLevel(int level) - Specified by:
- hasPermissionLevelin interface- CommandSource
- Mappings:
- Namespace - Name - Mixin selector - official - c- Ldu;c(I)Z- intermediary - method_9259- Lnet/minecraft/class_2172;method_9259(I)Z- named - hasPermissionLevel- Lnet/minecraft/command/CommandSource;hasPermissionLevel(I)Z
 
- 
listIdSuggestionspublic CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> listIdSuggestions(RegistryKey<? extends Registry<?>> registryRef, CommandSource.SuggestedIdType suggestedIdType, com.mojang.brigadier.suggestion.SuggestionsBuilder builder, com.mojang.brigadier.context.CommandContext<?> context) - Specified by:
- listIdSuggestionsin interface- CommandSource
- Mappings:
- Namespace - Name - Mixin selector - official - a- Ldu;a(Lacp;Ldu$a;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;Lcom/mojang/brigadier/context/CommandContext;)Ljava/util/concurrent/CompletableFuture;- intermediary - method_41213- Lnet/minecraft/class_2172;method_41213(Lnet/minecraft/class_5321;Lnet/minecraft/class_2172$class_7078;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;Lcom/mojang/brigadier/context/CommandContext;)Ljava/util/concurrent/CompletableFuture;- named - listIdSuggestions- Lnet/minecraft/command/CommandSource;listIdSuggestions(Lnet/minecraft/registry/RegistryKey;Lnet/minecraft/command/CommandSource$SuggestedIdType;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;Lcom/mojang/brigadier/context/CommandContext;)Ljava/util/concurrent/CompletableFuture;
 
- 
getCompletionspublic CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> getCompletions(com.mojang.brigadier.context.CommandContext<?> context) - Specified by:
- getCompletionsin interface- CommandSource
- Mappings:
- Namespace - Name - Mixin selector - official - a- Ldu;a(Lcom/mojang/brigadier/context/CommandContext;)Ljava/util/concurrent/CompletableFuture;- intermediary - method_9261- Lnet/minecraft/class_2172;method_9261(Lcom/mojang/brigadier/context/CommandContext;)Ljava/util/concurrent/CompletableFuture;- named - getCompletions- Lnet/minecraft/command/CommandSource;getCompletions(Lcom/mojang/brigadier/context/CommandContext;)Ljava/util/concurrent/CompletableFuture;
 
- 
format- Mappings:
- Namespace - Name - Mixin selector - official - a- Lfez;a(D)Ljava/lang/String;- intermediary - method_2929- Lnet/minecraft/class_637;method_2929(D)Ljava/lang/String;- named - format- Lnet/minecraft/client/network/ClientCommandSource;format(D)Ljava/lang/String;
 
- 
format- Mappings:
- Namespace - Name - Mixin selector - official - a- Lfez;a(I)Ljava/lang/String;- intermediary - method_2930- Lnet/minecraft/class_637;method_2930(I)Ljava/lang/String;- named - format- Lnet/minecraft/client/network/ClientCommandSource;format(I)Ljava/lang/String;
 
- 
getBlockPositionSuggestions- Specified by:
- getBlockPositionSuggestionsin interface- CommandSource
- Mappings:
- Namespace - Name - Mixin selector - official - z- Ldu;z()Ljava/util/Collection;- intermediary - method_17771- Lnet/minecraft/class_2172;method_17771()Ljava/util/Collection;- named - getBlockPositionSuggestions- Lnet/minecraft/command/CommandSource;getBlockPositionSuggestions()Ljava/util/Collection;
 
- 
getPositionSuggestions- Specified by:
- getPositionSuggestionsin interface- CommandSource
- Mappings:
- Namespace - Name - Mixin selector - official - A- Ldu;A()Ljava/util/Collection;- intermediary - method_17772- Lnet/minecraft/class_2172;method_17772()Ljava/util/Collection;- named - getPositionSuggestions- Lnet/minecraft/command/CommandSource;getPositionSuggestions()Ljava/util/Collection;
 
- 
getWorldKeys- Specified by:
- getWorldKeysin interface- CommandSource
- Mappings:
- Namespace - Name - Mixin selector - official - u- Ldu;u()Ljava/util/Set;- intermediary - method_29310- Lnet/minecraft/class_2172;method_29310()Ljava/util/Set;- named - getWorldKeys- Lnet/minecraft/command/CommandSource;getWorldKeys()Ljava/util/Set;
 
- 
getRegistryManager- Specified by:
- getRegistryManagerin interface- CommandSource
- Mappings:
- Namespace - Name - Mixin selector - official - v- Ldu;v()Lhs;- intermediary - method_30497- Lnet/minecraft/class_2172;method_30497()Lnet/minecraft/class_5455;- named - getRegistryManager- Lnet/minecraft/command/CommandSource;getRegistryManager()Lnet/minecraft/registry/DynamicRegistryManager;
 
- 
getEnabledFeatures- Specified by:
- getEnabledFeaturesin interface- CommandSource
- Mappings:
- Namespace - Name - Mixin selector - official - w- Ldu;w()Lcaw;- intermediary - method_45549- Lnet/minecraft/class_2172;method_45549()Lnet/minecraft/class_7699;- named - getEnabledFeatures- Lnet/minecraft/command/CommandSource;getEnabledFeatures()Lnet/minecraft/resource/featuretoggle/FeatureSet;
 
- 
onCommandSuggestionspublic void onCommandSuggestions(int completionId, com.mojang.brigadier.suggestion.Suggestions suggestions) - Mappings:
- Namespace - Name - Mixin selector - official - a- Lfez;a(ILcom/mojang/brigadier/suggestion/Suggestions;)V- intermediary - method_2931- Lnet/minecraft/class_637;method_2931(ILcom/mojang/brigadier/suggestion/Suggestions;)V- named - onCommandSuggestions- Lnet/minecraft/client/network/ClientCommandSource;onCommandSuggestions(ILcom/mojang/brigadier/suggestion/Suggestions;)V
 
- 
onChatSuggestions- Mappings:
- Namespace - Name - Mixin selector - official - a- Lfez;a(Lvo$a;Ljava/util/List;)V- intermediary - method_44764- Lnet/minecraft/class_637;method_44764(Lnet/minecraft/class_7597$class_7598;Ljava/util/List;)V- named - onChatSuggestions- Lnet/minecraft/client/network/ClientCommandSource;onChatSuggestions(Lnet/minecraft/network/packet/s2c/play/ChatSuggestionsS2CPacket$Action;Ljava/util/List;)V
 
 
-