类 ClientCommandSource

  • 所有已实现的接口:
    CommandSource

    @Environment(CLIENT)
    public class ClientCommandSource
    extends Object
    implements CommandSource
    Mappings:
    Namespace Name
    official ehz
    intermediary net/minecraft/class_637
    named net/minecraft/client/network/ClientCommandSource
    • 字段详细资料

      • networkHandler

        private final ClientPlayNetworkHandler networkHandler
        Mappings:
        Namespace Name Mixin selector
        official a Lehz;a:Lehy;
        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

        private final MinecraftClient client
        Mappings:
        Namespace Name Mixin selector
        official b Lehz;b:Ldum;
        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 Lehz;c:I
        intermediary field_3724 Lnet/minecraft/class_637;field_3724:I
        named completionId Lnet/minecraft/client/network/ClientCommandSource;completionId:I
      • pendingCompletion

        private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> pendingCompletion
        Mappings:
        Namespace Name Mixin selector
        official d Lehz;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;
    • 构造器详细资料

      • ClientCommandSource

        public ClientCommandSource​(ClientPlayNetworkHandler networkHandler,
                                   MinecraftClient client)
        Mappings:
        Namespace Name Mixin selector
        official <init> Lehz;<init>(Lehy;Ldum;)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
    • 方法详细资料

      • getPlayerNames

        public Collection<String> getPlayerNames()
        指定者:
        getPlayerNames 在接口中 CommandSource
        Mappings:
        Namespace Name Mixin selector
        official l Ldi;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

        public Collection<String> getEntitySuggestions()
        指定者:
        getEntitySuggestions 在接口中 CommandSource
        Mappings:
        Namespace Name Mixin selector
        official r Ldi;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

        public Collection<String> getTeamNames()
        指定者:
        getTeamNames 在接口中 CommandSource
        Mappings:
        Namespace Name Mixin selector
        official m Ldi;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

        public Collection<Identifier> getSoundIds()
        指定者:
        getSoundIds 在接口中 CommandSource
        Mappings:
        Namespace Name Mixin selector
        official n Ldi;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

        public Stream<Identifier> getRecipeIds()
        指定者:
        getRecipeIds 在接口中 CommandSource
        Mappings:
        Namespace Name Mixin selector
        official o Ldi;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)
        指定者:
        hasPermissionLevel 在接口中 CommandSource
        Mappings:
        Namespace Name Mixin selector
        official c Ldi;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)
        指定者:
        getCompletions 在接口中 CommandSource
        Mappings:
        Namespace Name Mixin selector
        official a Ldi;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

        private static String format​(double d)
        Mappings:
        Namespace Name Mixin selector
        official a Lehz;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

        private static String format​(int i)
        Mappings:
        Namespace Name Mixin selector
        official a Lehz;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

        public Collection<CommandSource.RelativePosition> getBlockPositionSuggestions()
        指定者:
        getBlockPositionSuggestions 在接口中 CommandSource
        Mappings:
        Namespace Name Mixin selector
        official s Ldi;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

        public Collection<CommandSource.RelativePosition> getPositionSuggestions()
        指定者:
        getPositionSuggestions 在接口中 CommandSource
        Mappings:
        Namespace Name Mixin selector
        official t Ldi;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

        public Set<RegistryKey<World>> getWorldKeys()
        指定者:
        getWorldKeys 在接口中 CommandSource
        Mappings:
        Namespace Name Mixin selector
        official p Ldi;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

        public DynamicRegistryManager getRegistryManager()
        指定者:
        getRegistryManager 在接口中 CommandSource
        Mappings:
        Namespace Name Mixin selector
        official q Ldi;q()Lgs;
        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 Lehz;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