类 ClientCommandSource
- java.lang.Object
-
- net.minecraft.client.network.ClientCommandSource
-
- 所有已实现的接口:
CommandSource
@Environment(CLIENT) public class ClientCommandSource extends Object implements CommandSource
- Mappings:
Namespace Name official ehzintermediary net/minecraft/class_637named net/minecraft/client/network/ClientCommandSource
-
-
嵌套类概要
-
从接口继承的嵌套类/接口 net.minecraft.command.CommandSource
CommandSource.RelativePosition
-
-
字段概要
字段 修饰符和类型 字段 说明 private MinecraftClientclientprivate intcompletionIdprivate ClientPlayNetworkHandlernetworkHandlerprivate CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>pendingCompletion
-
构造器概要
构造器 构造器 说明 ClientCommandSource(ClientPlayNetworkHandler networkHandler, MinecraftClient client)
-
方法概要
所有方法 静态方法 实例方法 具体方法 修饰符和类型 方法 说明 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)
-
-
-
字段详细资料
-
networkHandler
private final ClientPlayNetworkHandler networkHandler
- Mappings:
Namespace Name Mixin selector official aLehz;a:Lehy;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
private final MinecraftClient client
- Mappings:
Namespace Name Mixin selector official bLehz;b:Ldum;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 cLehz;c:Iintermediary field_3724Lnet/minecraft/class_637;field_3724:Inamed completionIdLnet/minecraft/client/network/ClientCommandSource;completionId:I
-
pendingCompletion
private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> pendingCompletion
- Mappings:
Namespace Name Mixin selector official dLehz;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;
-
-
构造器详细资料
-
ClientCommandSource
public ClientCommandSource(ClientPlayNetworkHandler networkHandler, MinecraftClient client)
- Mappings:
Namespace Name Mixin selector official <init>Lehz;<init>(Lehy;Ldum;)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
-
-
方法详细资料
-
getPlayerNames
public Collection<String> getPlayerNames()
- 指定者:
getPlayerNames在接口中CommandSource- Mappings:
Namespace Name Mixin selector official lLdi;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
public Collection<String> getEntitySuggestions()
- 指定者:
getEntitySuggestions在接口中CommandSource- Mappings:
Namespace Name Mixin selector official rLdi;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
public Collection<String> getTeamNames()
- 指定者:
getTeamNames在接口中CommandSource- Mappings:
Namespace Name Mixin selector official mLdi;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
public Collection<Identifier> getSoundIds()
- 指定者:
getSoundIds在接口中CommandSource- Mappings:
Namespace Name Mixin selector official nLdi;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
public Stream<Identifier> getRecipeIds()
- 指定者:
getRecipeIds在接口中CommandSource- Mappings:
Namespace Name Mixin selector official oLdi;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)
- 指定者:
hasPermissionLevel在接口中CommandSource- Mappings:
Namespace Name Mixin selector official cLdi;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)
- 指定者:
getCompletions在接口中CommandSource- Mappings:
Namespace Name Mixin selector official aLdi;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
private static String format(double d)
- Mappings:
Namespace Name Mixin selector official aLehz;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
private static String format(int i)
- Mappings:
Namespace Name Mixin selector official aLehz;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
public Collection<CommandSource.RelativePosition> getBlockPositionSuggestions()
- 指定者:
getBlockPositionSuggestions在接口中CommandSource- Mappings:
Namespace Name Mixin selector official sLdi;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
public Collection<CommandSource.RelativePosition> getPositionSuggestions()
- 指定者:
getPositionSuggestions在接口中CommandSource- Mappings:
Namespace Name Mixin selector official tLdi;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
public Set<RegistryKey<World>> getWorldKeys()
- 指定者:
getWorldKeys在接口中CommandSource- Mappings:
Namespace Name Mixin selector official pLdi;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
public DynamicRegistryManager getRegistryManager()
- 指定者:
getRegistryManager在接口中CommandSource- Mappings:
Namespace Name Mixin selector official qLdi;q()Lgs;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 aLehz;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
-
-