Package net.minecraft.client.network
Class ClientCommandSource
java.lang.Object
net.minecraft.client.network.ClientCommandSource
- All Implemented Interfaces:
CommandSource
- Mappings:
Namespace Name named net/minecraft/client/network/ClientCommandSource
intermediary net/minecraft/class_637
official gfn
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.command.CommandSource
CommandSource.RelativePosition, CommandSource.SuggestedIdType
-
Field Summary
Modifier and TypeFieldDescriptionprivate final MinecraftClient
private int
private final ClientPlayNetworkHandler
private @Nullable CompletableFuture
<com.mojang.brigadier.suggestion.Suggestions> -
Constructor Summary
ConstructorDescriptionClientCommandSource
(ClientPlayNetworkHandler networkHandler, MinecraftClient client) -
Method Summary
Modifier and TypeMethodDescriptionprivate static String
format
(double d) private static String
format
(int i) CompletableFuture
<com.mojang.brigadier.suggestion.Suggestions> getCompletions
(com.mojang.brigadier.context.CommandContext<?> context) boolean
hasPermissionLevel
(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) void
onChatSuggestions
(ChatSuggestionsS2CPacket.Action action, List<String> suggestions) void
onCommandSuggestions
(int completionId, com.mojang.brigadier.suggestion.Suggestions suggestions) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.command.CommandSource
suggestIdentifiers
-
Field Details
-
networkHandler
- Mappings:
Namespace Name Mixin selector named networkHandler
Lnet/minecraft/client/network/ClientCommandSource;networkHandler:Lnet/minecraft/client/network/ClientPlayNetworkHandler;
intermediary field_3722
Lnet/minecraft/class_637;field_3722:Lnet/minecraft/class_634;
official a
Lgfn;a:Lgfk;
-
client
- Mappings:
Namespace Name Mixin selector named client
Lnet/minecraft/client/network/ClientCommandSource;client:Lnet/minecraft/client/MinecraftClient;
intermediary field_3725
Lnet/minecraft/class_637;field_3725:Lnet/minecraft/class_310;
official b
Lgfn;b:Lfmf;
-
completionId
private int completionId- Mappings:
Namespace Name Mixin selector named completionId
Lnet/minecraft/client/network/ClientCommandSource;completionId:I
intermediary field_3724
Lnet/minecraft/class_637;field_3724:I
official c
Lgfn;c:I
-
pendingCommandCompletion
@Nullable private @Nullable CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> pendingCommandCompletion- Mappings:
Namespace Name Mixin selector named pendingCommandCompletion
Lnet/minecraft/client/network/ClientCommandSource;pendingCommandCompletion:Ljava/util/concurrent/CompletableFuture;
intermediary field_3723
Lnet/minecraft/class_637;field_3723:Ljava/util/concurrent/CompletableFuture;
official d
Lgfn;d:Ljava/util/concurrent/CompletableFuture;
-
chatSuggestions
- Mappings:
Namespace Name Mixin selector named chatSuggestions
Lnet/minecraft/client/network/ClientCommandSource;chatSuggestions:Ljava/util/Set;
intermediary field_39794
Lnet/minecraft/class_637;field_39794:Ljava/util/Set;
official e
Lgfn;e:Ljava/util/Set;
-
-
Constructor Details
-
ClientCommandSource
- Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/client/network/ClientCommandSource;<init>(Lnet/minecraft/client/network/ClientPlayNetworkHandler;Lnet/minecraft/client/MinecraftClient;)V
intermediary <init>
Lnet/minecraft/class_637;<init>(Lnet/minecraft/class_634;Lnet/minecraft/class_310;)V
official <init>
Lgfn;<init>(Lgfk;Lfmf;)V
-
-
Method Details
-
getPlayerNames
- Specified by:
getPlayerNames
in interfaceCommandSource
- Mappings:
Namespace Name Mixin selector named getPlayerNames
Lnet/minecraft/command/CommandSource;getPlayerNames()Ljava/util/Collection;
intermediary method_9262
Lnet/minecraft/class_2172;method_9262()Ljava/util/Collection;
official q
Lfb;q()Ljava/util/Collection;
-
getChatSuggestions
- Specified by:
getChatSuggestions
in interfaceCommandSource
- Mappings:
Namespace Name Mixin selector named getChatSuggestions
Lnet/minecraft/command/CommandSource;getChatSuggestions()Ljava/util/Collection;
intermediary method_44750
Lnet/minecraft/class_2172;method_44750()Ljava/util/Collection;
official y
Lfb;y()Ljava/util/Collection;
-
getEntitySuggestions
- Specified by:
getEntitySuggestions
in interfaceCommandSource
- Mappings:
Namespace Name Mixin selector named getEntitySuggestions
Lnet/minecraft/command/CommandSource;getEntitySuggestions()Ljava/util/Collection;
intermediary method_9269
Lnet/minecraft/class_2172;method_9269()Ljava/util/Collection;
official z
Lfb;z()Ljava/util/Collection;
-
getTeamNames
- Specified by:
getTeamNames
in interfaceCommandSource
- Mappings:
Namespace Name Mixin selector named getTeamNames
Lnet/minecraft/command/CommandSource;getTeamNames()Ljava/util/Collection;
intermediary method_9267
Lnet/minecraft/class_2172;method_9267()Ljava/util/Collection;
official r
Lfb;r()Ljava/util/Collection;
-
getSoundIds
- Specified by:
getSoundIds
in interfaceCommandSource
- Mappings:
Namespace Name Mixin selector named getSoundIds
Lnet/minecraft/command/CommandSource;getSoundIds()Ljava/util/stream/Stream;
intermediary method_9254
Lnet/minecraft/class_2172;method_9254()Ljava/util/stream/Stream;
official s
Lfb;s()Ljava/util/stream/Stream;
-
hasPermissionLevel
public boolean hasPermissionLevel(int level) - Specified by:
hasPermissionLevel
in interfaceCommandSource
- Mappings:
Namespace Name Mixin selector named hasPermissionLevel
Lnet/minecraft/command/CommandSource;hasPermissionLevel(I)Z
intermediary method_9259
Lnet/minecraft/class_2172;method_9259(I)Z
official c
Lfb;c(I)Z
-
listIdSuggestions
public 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:
listIdSuggestions
in interfaceCommandSource
- Mappings:
Namespace Name Mixin selector 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;
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;
official a
Lfb;a(Laly;Lfb$a;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;Lcom/mojang/brigadier/context/CommandContext;)Ljava/util/concurrent/CompletableFuture;
-
getCompletions
public CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> getCompletions(com.mojang.brigadier.context.CommandContext<?> context) - Specified by:
getCompletions
in interfaceCommandSource
- Mappings:
Namespace Name Mixin selector named getCompletions
Lnet/minecraft/command/CommandSource;getCompletions(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;
official a
Lfb;a(Lcom/mojang/brigadier/context/CommandContext;)Ljava/util/concurrent/CompletableFuture;
-
format
- Mappings:
Namespace Name Mixin selector named format
Lnet/minecraft/client/network/ClientCommandSource;format(D)Ljava/lang/String;
intermediary method_2929
Lnet/minecraft/class_637;method_2929(D)Ljava/lang/String;
official a
Lgfn;a(D)Ljava/lang/String;
-
format
- Mappings:
Namespace Name Mixin selector named format
Lnet/minecraft/client/network/ClientCommandSource;format(I)Ljava/lang/String;
intermediary method_2930
Lnet/minecraft/class_637;method_2930(I)Ljava/lang/String;
official a
Lgfn;a(I)Ljava/lang/String;
-
getBlockPositionSuggestions
- Specified by:
getBlockPositionSuggestions
in interfaceCommandSource
- Mappings:
Namespace Name Mixin selector named getBlockPositionSuggestions
Lnet/minecraft/command/CommandSource;getBlockPositionSuggestions()Ljava/util/Collection;
intermediary method_17771
Lnet/minecraft/class_2172;method_17771()Ljava/util/Collection;
official A
Lfb;A()Ljava/util/Collection;
-
getPositionSuggestions
- Specified by:
getPositionSuggestions
in interfaceCommandSource
- Mappings:
Namespace Name Mixin selector named getPositionSuggestions
Lnet/minecraft/command/CommandSource;getPositionSuggestions()Ljava/util/Collection;
intermediary method_17772
Lnet/minecraft/class_2172;method_17772()Ljava/util/Collection;
official B
Lfb;B()Ljava/util/Collection;
-
getWorldKeys
- Specified by:
getWorldKeys
in interfaceCommandSource
- Mappings:
Namespace Name Mixin selector named getWorldKeys
Lnet/minecraft/command/CommandSource;getWorldKeys()Ljava/util/Set;
intermediary method_29310
Lnet/minecraft/class_2172;method_29310()Ljava/util/Set;
official t
Lfb;t()Ljava/util/Set;
-
getRegistryManager
- Specified by:
getRegistryManager
in interfaceCommandSource
- Mappings:
Namespace Name Mixin selector named getRegistryManager
Lnet/minecraft/command/CommandSource;getRegistryManager()Lnet/minecraft/registry/DynamicRegistryManager;
intermediary method_30497
Lnet/minecraft/class_2172;method_30497()Lnet/minecraft/class_5455;
official u
Lfb;u()Lke;
-
getEnabledFeatures
- Specified by:
getEnabledFeatures
in interfaceCommandSource
- Mappings:
Namespace Name Mixin selector named getEnabledFeatures
Lnet/minecraft/command/CommandSource;getEnabledFeatures()Lnet/minecraft/resource/featuretoggle/FeatureSet;
intermediary method_45549
Lnet/minecraft/class_2172;method_45549()Lnet/minecraft/class_7699;
official v
Lfb;v()Lcss;
-
onCommandSuggestions
public void onCommandSuggestions(int completionId, com.mojang.brigadier.suggestion.Suggestions suggestions) - Mappings:
Namespace Name Mixin selector named onCommandSuggestions
Lnet/minecraft/client/network/ClientCommandSource;onCommandSuggestions(ILcom/mojang/brigadier/suggestion/Suggestions;)V
intermediary method_2931
Lnet/minecraft/class_637;method_2931(ILcom/mojang/brigadier/suggestion/Suggestions;)V
official a
Lgfn;a(ILcom/mojang/brigadier/suggestion/Suggestions;)V
-
onChatSuggestions
- Mappings:
Namespace Name Mixin selector named onChatSuggestions
Lnet/minecraft/client/network/ClientCommandSource;onChatSuggestions(Lnet/minecraft/network/packet/s2c/play/ChatSuggestionsS2CPacket$Action;Ljava/util/List;)V
intermediary method_44764
Lnet/minecraft/class_637;method_44764(Lnet/minecraft/class_7597$class_7598;Ljava/util/List;)V
official a
Lgfn;a(Ladq$a;Ljava/util/List;)V
-