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/ClientCommandSourceintermediary net/minecraft/class_637official fzi
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.command.CommandSource
CommandSource.RelativePosition, CommandSource.SuggestedIdType -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final MinecraftClientprivate intprivate final ClientPlayNetworkHandlerprivate @Nullable CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> -
Constructor Summary
ConstructorsConstructorDescriptionClientCommandSource(ClientPlayNetworkHandler networkHandler, MinecraftClient client) -
Method Summary
Modifier 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.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.command.CommandSource
suggestIdentifiers
-
Field Details
-
networkHandler
- Mappings:
Namespace Name Mixin selector named networkHandlerLnet/minecraft/client/network/ClientCommandSource;networkHandler:Lnet/minecraft/client/network/ClientPlayNetworkHandler;intermediary field_3722Lnet/minecraft/class_637;field_3722:Lnet/minecraft/class_634;official aLfzi;a:Lfzg;
-
client
- Mappings:
Namespace Name Mixin selector named clientLnet/minecraft/client/network/ClientCommandSource;client:Lnet/minecraft/client/MinecraftClient;intermediary field_3725Lnet/minecraft/class_637;field_3725:Lnet/minecraft/class_310;official bLfzi;b:Lfgo;
-
completionId
private int completionId- Mappings:
Namespace Name Mixin selector named completionIdLnet/minecraft/client/network/ClientCommandSource;completionId:Iintermediary field_3724Lnet/minecraft/class_637;field_3724:Iofficial cLfzi;c:I
-
pendingCommandCompletion
@Nullable private @Nullable CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> pendingCommandCompletion- Mappings:
Namespace Name Mixin selector named pendingCommandCompletionLnet/minecraft/client/network/ClientCommandSource;pendingCommandCompletion:Ljava/util/concurrent/CompletableFuture;intermediary field_3723Lnet/minecraft/class_637;field_3723:Ljava/util/concurrent/CompletableFuture;official dLfzi;d:Ljava/util/concurrent/CompletableFuture;
-
chatSuggestions
- Mappings:
Namespace Name Mixin selector named chatSuggestionsLnet/minecraft/client/network/ClientCommandSource;chatSuggestions:Ljava/util/Set;intermediary field_39794Lnet/minecraft/class_637;field_39794:Ljava/util/Set;official eLfzi;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;)Vintermediary <init>Lnet/minecraft/class_637;<init>(Lnet/minecraft/class_634;Lnet/minecraft/class_310;)Vofficial <init>Lfzi;<init>(Lfzg;Lfgo;)V
-
-
Method Details
-
getPlayerNames
- Specified by:
getPlayerNamesin interfaceCommandSource- Mappings:
Namespace Name Mixin selector named getPlayerNamesLnet/minecraft/command/CommandSource;getPlayerNames()Ljava/util/Collection;intermediary method_9262Lnet/minecraft/class_2172;method_9262()Ljava/util/Collection;official qLey;q()Ljava/util/Collection;
-
getChatSuggestions
- Specified by:
getChatSuggestionsin interfaceCommandSource- Mappings:
Namespace Name Mixin selector named getChatSuggestionsLnet/minecraft/command/CommandSource;getChatSuggestions()Ljava/util/Collection;intermediary method_44750Lnet/minecraft/class_2172;method_44750()Ljava/util/Collection;official zLey;z()Ljava/util/Collection;
-
getEntitySuggestions
- Specified by:
getEntitySuggestionsin interfaceCommandSource- Mappings:
Namespace Name Mixin selector named getEntitySuggestionsLnet/minecraft/command/CommandSource;getEntitySuggestions()Ljava/util/Collection;intermediary method_9269Lnet/minecraft/class_2172;method_9269()Ljava/util/Collection;official ALey;A()Ljava/util/Collection;
-
getTeamNames
- Specified by:
getTeamNamesin interfaceCommandSource- Mappings:
Namespace Name Mixin selector named getTeamNamesLnet/minecraft/command/CommandSource;getTeamNames()Ljava/util/Collection;intermediary method_9267Lnet/minecraft/class_2172;method_9267()Ljava/util/Collection;official rLey;r()Ljava/util/Collection;
-
getSoundIds
- Specified by:
getSoundIdsin interfaceCommandSource- Mappings:
Namespace Name Mixin selector named getSoundIdsLnet/minecraft/command/CommandSource;getSoundIds()Ljava/util/stream/Stream;intermediary method_9254Lnet/minecraft/class_2172;method_9254()Ljava/util/stream/Stream;official sLey;s()Ljava/util/stream/Stream;
-
getRecipeIds
- Specified by:
getRecipeIdsin interfaceCommandSource- Mappings:
Namespace Name Mixin selector named getRecipeIdsLnet/minecraft/command/CommandSource;getRecipeIds()Ljava/util/stream/Stream;intermediary method_9273Lnet/minecraft/class_2172;method_9273()Ljava/util/stream/Stream;official tLey;t()Ljava/util/stream/Stream;
-
hasPermissionLevel
public boolean hasPermissionLevel(int level) - Specified by:
hasPermissionLevelin interfaceCommandSource- Mappings:
Namespace Name Mixin selector named hasPermissionLevelLnet/minecraft/command/CommandSource;hasPermissionLevel(I)Zintermediary method_9259Lnet/minecraft/class_2172;method_9259(I)Zofficial cLey;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:
listIdSuggestionsin interfaceCommandSource- Mappings:
Namespace Name Mixin selector named listIdSuggestionsLnet/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_41213Lnet/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 aLey;a(Lakq;Ley$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:
getCompletionsin interfaceCommandSource- Mappings:
Namespace Name Mixin selector named getCompletionsLnet/minecraft/command/CommandSource;getCompletions(Lcom/mojang/brigadier/context/CommandContext;)Ljava/util/concurrent/CompletableFuture;intermediary method_9261Lnet/minecraft/class_2172;method_9261(Lcom/mojang/brigadier/context/CommandContext;)Ljava/util/concurrent/CompletableFuture;official aLey;a(Lcom/mojang/brigadier/context/CommandContext;)Ljava/util/concurrent/CompletableFuture;
-
format
- Mappings:
Namespace Name Mixin selector named formatLnet/minecraft/client/network/ClientCommandSource;format(D)Ljava/lang/String;intermediary method_2929Lnet/minecraft/class_637;method_2929(D)Ljava/lang/String;official aLfzi;a(D)Ljava/lang/String;
-
format
- Mappings:
Namespace Name Mixin selector named formatLnet/minecraft/client/network/ClientCommandSource;format(I)Ljava/lang/String;intermediary method_2930Lnet/minecraft/class_637;method_2930(I)Ljava/lang/String;official aLfzi;a(I)Ljava/lang/String;
-
getBlockPositionSuggestions
- Specified by:
getBlockPositionSuggestionsin interfaceCommandSource- Mappings:
Namespace Name Mixin selector named getBlockPositionSuggestionsLnet/minecraft/command/CommandSource;getBlockPositionSuggestions()Ljava/util/Collection;intermediary method_17771Lnet/minecraft/class_2172;method_17771()Ljava/util/Collection;official BLey;B()Ljava/util/Collection;
-
getPositionSuggestions
- Specified by:
getPositionSuggestionsin interfaceCommandSource- Mappings:
Namespace Name Mixin selector named getPositionSuggestionsLnet/minecraft/command/CommandSource;getPositionSuggestions()Ljava/util/Collection;intermediary method_17772Lnet/minecraft/class_2172;method_17772()Ljava/util/Collection;official CLey;C()Ljava/util/Collection;
-
getWorldKeys
- Specified by:
getWorldKeysin interfaceCommandSource- Mappings:
Namespace Name Mixin selector named getWorldKeysLnet/minecraft/command/CommandSource;getWorldKeys()Ljava/util/Set;intermediary method_29310Lnet/minecraft/class_2172;method_29310()Ljava/util/Set;official uLey;u()Ljava/util/Set;
-
getRegistryManager
- Specified by:
getRegistryManagerin interfaceCommandSource- Mappings:
Namespace Name Mixin selector named getRegistryManagerLnet/minecraft/command/CommandSource;getRegistryManager()Lnet/minecraft/registry/DynamicRegistryManager;intermediary method_30497Lnet/minecraft/class_2172;method_30497()Lnet/minecraft/class_5455;official vLey;v()Lka;
-
getEnabledFeatures
- Specified by:
getEnabledFeaturesin interfaceCommandSource- Mappings:
Namespace Name Mixin selector named getEnabledFeaturesLnet/minecraft/command/CommandSource;getEnabledFeatures()Lnet/minecraft/resource/featuretoggle/FeatureSet;intermediary method_45549Lnet/minecraft/class_2172;method_45549()Lnet/minecraft/class_7699;official wLey;w()Lcpl;
-
onCommandSuggestions
public void onCommandSuggestions(int completionId, com.mojang.brigadier.suggestion.Suggestions suggestions) - Mappings:
Namespace Name Mixin selector named onCommandSuggestionsLnet/minecraft/client/network/ClientCommandSource;onCommandSuggestions(ILcom/mojang/brigadier/suggestion/Suggestions;)Vintermediary method_2931Lnet/minecraft/class_637;method_2931(ILcom/mojang/brigadier/suggestion/Suggestions;)Vofficial aLfzi;a(ILcom/mojang/brigadier/suggestion/Suggestions;)V
-
onChatSuggestions
- Mappings:
Namespace Name Mixin selector named onChatSuggestionsLnet/minecraft/client/network/ClientCommandSource;onChatSuggestions(Lnet/minecraft/network/packet/s2c/play/ChatSuggestionsS2CPacket$Action;Ljava/util/List;)Vintermediary method_44764Lnet/minecraft/class_637;method_44764(Lnet/minecraft/class_7597$class_7598;Ljava/util/List;)Vofficial aLfzi;a(Lact$a;Ljava/util/List;)V
-