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 eea
intermediary net/minecraft/class_637
named 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 MinecraftClient
client
private int
completionId
private ClientPlayNetworkHandler
networkHandler
private 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 String
format(double d)
private static String
format(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()
DynamicRegistryManager
getRegistryManager()
Collection<Identifier>
getSoundIds()
Collection<String>
getTeamNames()
Set<RegistryKey<World>>
getWorldKeys()
boolean
hasPermissionLevel(int level)
void
onCommandSuggestions(int completionId, com.mojang.brigadier.suggestion.Suggestions suggestions)
-
Field Details
-
networkHandler
- Mappings:
Namespace Name Mixin selector official a
Leea;a:Ledz;
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
Leea;b:Ldqk;
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;
-
completionId
private int completionId- Mappings:
Namespace Name Mixin selector official c
Leea;c:I
intermediary field_3724
Lnet/minecraft/class_637;field_3724:I
named completionId
Lnet/minecraft/client/network/ClientCommandSource;completionId:I
-
pendingCompletion
- Mappings:
Namespace Name Mixin selector official d
Leea;d:Ljava/util/concurrent/CompletableFuture;
intermediary field_3723
Lnet/minecraft/class_637;field_3723:Ljava/util/concurrent/CompletableFuture;
named pendingCompletion
Lnet/minecraft/client/network/ClientCommandSource;pendingCompletion:Ljava/util/concurrent/CompletableFuture;
-
-
Constructor Details
-
ClientCommandSource
- Mappings:
Namespace Name Mixin selector official <init>
Leea;<init>(Ledz;Ldqk;)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:
getPlayerNames
in interfaceCommandSource
- Mappings:
Namespace Name Mixin selector official l
Ldd;l()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;
-
getEntitySuggestions
- Specified by:
getEntitySuggestions
in interfaceCommandSource
- Mappings:
Namespace Name Mixin selector official r
Ldd;r()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:
getTeamNames
in interfaceCommandSource
- Mappings:
Namespace Name Mixin selector official m
Ldd;m()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:
getSoundIds
in interfaceCommandSource
- Mappings:
Namespace Name Mixin selector official n
Ldd;n()Ljava/util/Collection;
intermediary method_9254
Lnet/minecraft/class_2172;method_9254()Ljava/util/Collection;
named getSoundIds
Lnet/minecraft/command/CommandSource;getSoundIds()Ljava/util/Collection;
-
getRecipeIds
- Specified by:
getRecipeIds
in interfaceCommandSource
- Mappings:
Namespace Name Mixin selector official o
Ldd;o()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;
-
hasPermissionLevel
public boolean hasPermissionLevel(int level)- Specified by:
hasPermissionLevel
in interfaceCommandSource
- Mappings:
Namespace Name Mixin selector official c
Ldd;c(I)Z
intermediary method_9259
Lnet/minecraft/class_2172;method_9259(I)Z
named hasPermissionLevel
Lnet/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:
getCompletions
in interfaceCommandSource
- Mappings:
Namespace Name Mixin selector official a
Ldd;a(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
intermediary method_9261
Lnet/minecraft/class_2172;method_9261(Lcom/mojang/brigadier/context/CommandContext;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;)Ljava/util/concurrent/CompletableFuture;
named getCompletions
Lnet/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 a
Leea;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
Leea;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:
getBlockPositionSuggestions
in interfaceCommandSource
- Mappings:
Namespace Name Mixin selector official s
Ldd;s()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:
getPositionSuggestions
in interfaceCommandSource
- Mappings:
Namespace Name Mixin selector official t
Ldd;t()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:
getWorldKeys
in interfaceCommandSource
- Mappings:
Namespace Name Mixin selector official p
Ldd;p()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:
getRegistryManager
in interfaceCommandSource
- Mappings:
Namespace Name Mixin selector official q
Ldd;q()Lgo;
intermediary method_30497
Lnet/minecraft/class_2172;method_30497()Lnet/minecraft/class_5455;
named getRegistryManager
Lnet/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 a
Leea;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
-