Package net.minecraft.client.network
Class ClientCommandSource
java.lang.Object
net.minecraft.client.network.ClientCommandSource
- All Implemented Interfaces:
CommandSource
@Environment(CLIENT) public class ClientCommandSource extends Object implements CommandSource
- Mappings:
Namespace Name official eeaintermediary net/minecraft/class_637named net/minecraft/client/network/ClientCommandSource
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.command.CommandSource
CommandSource.RelativePosition -
Field Summary
Fields Modifier and Type Field Description private MinecraftClientclientprivate intcompletionIdprivate ClientPlayNetworkHandlernetworkHandlerprivate CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>pendingCompletion -
Constructor Summary
Constructors Constructor Description ClientCommandSource(ClientPlayNetworkHandler networkHandler, MinecraftClient client) -
Method Summary
Modifier and Type Method Description private static Stringformat(double d)private static Stringformat(int i)Collection<CommandSource.RelativePosition>getBlockPositionSuggestions()CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>getCompletions(com.mojang.brigadier.context.CommandContext<CommandSource> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)Collection<String>getEntitySuggestions()Collection<String>getPlayerNames()Collection<CommandSource.RelativePosition>getPositionSuggestions()Stream<Identifier>getRecipeIds()DynamicRegistryManagergetRegistryManager()Collection<Identifier>getSoundIds()Collection<String>getTeamNames()Set<RegistryKey<World>>getWorldKeys()booleanhasPermissionLevel(int level)voidonCommandSuggestions(int completionId, com.mojang.brigadier.suggestion.Suggestions suggestions)
-
Field Details
-
networkHandler
- Mappings:
Namespace Name Mixin selector official aLeea;a:Ledz;intermediary field_3722Lnet/minecraft/class_637;field_3722:Lnet/minecraft/class_634;named networkHandlerLnet/minecraft/client/network/ClientCommandSource;networkHandler:Lnet/minecraft/client/network/ClientPlayNetworkHandler;
-
client
- Mappings:
Namespace Name Mixin selector official bLeea;b:Ldqk;intermediary field_3725Lnet/minecraft/class_637;field_3725:Lnet/minecraft/class_310;named clientLnet/minecraft/client/network/ClientCommandSource;client:Lnet/minecraft/client/MinecraftClient;
-
completionId
private int completionId- Mappings:
Namespace Name Mixin selector official cLeea;c:Iintermediary field_3724Lnet/minecraft/class_637;field_3724:Inamed completionIdLnet/minecraft/client/network/ClientCommandSource;completionId:I
-
pendingCompletion
- Mappings:
Namespace Name Mixin selector official dLeea;d:Ljava/util/concurrent/CompletableFuture;intermediary field_3723Lnet/minecraft/class_637;field_3723:Ljava/util/concurrent/CompletableFuture;named pendingCompletionLnet/minecraft/client/network/ClientCommandSource;pendingCompletion:Ljava/util/concurrent/CompletableFuture;
-
-
Constructor Details
-
ClientCommandSource
- Mappings:
Namespace Name Mixin selector official <init>Leea;<init>(Ledz;Ldqk;)Vintermediary <init>Lnet/minecraft/class_637;<init>(Lnet/minecraft/class_634;Lnet/minecraft/class_310;)Vnamed <init>Lnet/minecraft/client/network/ClientCommandSource;<init>(Lnet/minecraft/client/network/ClientPlayNetworkHandler;Lnet/minecraft/client/MinecraftClient;)V
-
-
Method Details
-
getPlayerNames
- Specified by:
getPlayerNamesin interfaceCommandSource- Mappings:
Namespace Name Mixin selector official lLdd;l()Ljava/util/Collection;intermediary method_9262Lnet/minecraft/class_2172;method_9262()Ljava/util/Collection;named getPlayerNamesLnet/minecraft/command/CommandSource;getPlayerNames()Ljava/util/Collection;
-
getEntitySuggestions
- Specified by:
getEntitySuggestionsin interfaceCommandSource- Mappings:
Namespace Name Mixin selector official rLdd;r()Ljava/util/Collection;intermediary method_9269Lnet/minecraft/class_2172;method_9269()Ljava/util/Collection;named getEntitySuggestionsLnet/minecraft/command/CommandSource;getEntitySuggestions()Ljava/util/Collection;
-
getTeamNames
- Specified by:
getTeamNamesin interfaceCommandSource- Mappings:
Namespace Name Mixin selector official mLdd;m()Ljava/util/Collection;intermediary method_9267Lnet/minecraft/class_2172;method_9267()Ljava/util/Collection;named getTeamNamesLnet/minecraft/command/CommandSource;getTeamNames()Ljava/util/Collection;
-
getSoundIds
- Specified by:
getSoundIdsin interfaceCommandSource- Mappings:
Namespace Name Mixin selector official nLdd;n()Ljava/util/Collection;intermediary method_9254Lnet/minecraft/class_2172;method_9254()Ljava/util/Collection;named getSoundIdsLnet/minecraft/command/CommandSource;getSoundIds()Ljava/util/Collection;
-
getRecipeIds
- Specified by:
getRecipeIdsin interfaceCommandSource- Mappings:
Namespace Name Mixin selector official oLdd;o()Ljava/util/stream/Stream;intermediary method_9273Lnet/minecraft/class_2172;method_9273()Ljava/util/stream/Stream;named getRecipeIdsLnet/minecraft/command/CommandSource;getRecipeIds()Ljava/util/stream/Stream;
-
hasPermissionLevel
public boolean hasPermissionLevel(int level)- Specified by:
hasPermissionLevelin interfaceCommandSource- Mappings:
Namespace Name Mixin selector official cLdd;c(I)Zintermediary method_9259Lnet/minecraft/class_2172;method_9259(I)Znamed hasPermissionLevelLnet/minecraft/command/CommandSource;hasPermissionLevel(I)Z
-
getCompletions
public CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> getCompletions(com.mojang.brigadier.context.CommandContext<CommandSource> context, com.mojang.brigadier.suggestion.SuggestionsBuilder builder)- Specified by:
getCompletionsin interfaceCommandSource- Mappings:
Namespace Name Mixin selector official aLdd;a(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;intermediary method_9261Lnet/minecraft/class_2172;method_9261(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;named getCompletionsLnet/minecraft/command/CommandSource;getCompletions(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
-
format
- Mappings:
Namespace Name Mixin selector official aLeea;a(D)Ljava/lang/String;intermediary method_2929Lnet/minecraft/class_637;method_2929(D)Ljava/lang/String;named formatLnet/minecraft/client/network/ClientCommandSource;format(D)Ljava/lang/String;
-
format
- Mappings:
Namespace Name Mixin selector official aLeea;a(I)Ljava/lang/String;intermediary method_2930Lnet/minecraft/class_637;method_2930(I)Ljava/lang/String;named formatLnet/minecraft/client/network/ClientCommandSource;format(I)Ljava/lang/String;
-
getBlockPositionSuggestions
- Specified by:
getBlockPositionSuggestionsin interfaceCommandSource- Mappings:
Namespace Name Mixin selector official sLdd;s()Ljava/util/Collection;intermediary method_17771Lnet/minecraft/class_2172;method_17771()Ljava/util/Collection;named getBlockPositionSuggestionsLnet/minecraft/command/CommandSource;getBlockPositionSuggestions()Ljava/util/Collection;
-
getPositionSuggestions
- Specified by:
getPositionSuggestionsin interfaceCommandSource- Mappings:
Namespace Name Mixin selector official tLdd;t()Ljava/util/Collection;intermediary method_17772Lnet/minecraft/class_2172;method_17772()Ljava/util/Collection;named getPositionSuggestionsLnet/minecraft/command/CommandSource;getPositionSuggestions()Ljava/util/Collection;
-
getWorldKeys
- Specified by:
getWorldKeysin interfaceCommandSource- Mappings:
Namespace Name Mixin selector official pLdd;p()Ljava/util/Set;intermediary method_29310Lnet/minecraft/class_2172;method_29310()Ljava/util/Set;named getWorldKeysLnet/minecraft/command/CommandSource;getWorldKeys()Ljava/util/Set;
-
getRegistryManager
- Specified by:
getRegistryManagerin interfaceCommandSource- Mappings:
Namespace Name Mixin selector official qLdd;q()Lgo;intermediary method_30497Lnet/minecraft/class_2172;method_30497()Lnet/minecraft/class_5455;named getRegistryManagerLnet/minecraft/command/CommandSource;getRegistryManager()Lnet/minecraft/util/registry/DynamicRegistryManager;
-
onCommandSuggestions
public void onCommandSuggestions(int completionId, com.mojang.brigadier.suggestion.Suggestions suggestions)- Mappings:
Namespace Name Mixin selector official aLeea;a(ILcom/mojang/brigadier/suggestion/Suggestions;)Vintermediary method_2931Lnet/minecraft/class_637;method_2931(ILcom/mojang/brigadier/suggestion/Suggestions;)Vnamed onCommandSuggestionsLnet/minecraft/client/network/ClientCommandSource;onCommandSuggestions(ILcom/mojang/brigadier/suggestion/Suggestions;)V
-