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 fdm
intermediary net/minecraft/class_637
named net/minecraft/client/network/ClientCommandSource
  • Field Details

    • networkHandler

      private final ClientPlayNetworkHandler networkHandler
      Mappings:
      Namespace Name Mixin selector
      official a Lfdm;a:Lfdk;
      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 Lfdm;b:Lemh;
      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 Lfdm;c:I
      intermediary field_3724 Lnet/minecraft/class_637;field_3724:I
      named completionId Lnet/minecraft/client/network/ClientCommandSource;completionId:I
    • pendingCommandCompletion

      @Nullable private @Nullable CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> pendingCommandCompletion
      Mappings:
      Namespace Name Mixin selector
      official d Lfdm;d:Ljava/util/concurrent/CompletableFuture;
      intermediary field_3723 Lnet/minecraft/class_637;field_3723:Ljava/util/concurrent/CompletableFuture;
      named pendingCommandCompletion Lnet/minecraft/client/network/ClientCommandSource;pendingCommandCompletion:Ljava/util/concurrent/CompletableFuture;
    • chatSuggestions

      private final Set<String> chatSuggestions
      Mappings:
      Namespace Name Mixin selector
      official e Lfdm;e:Ljava/util/Set;
      intermediary field_39794 Lnet/minecraft/class_637;field_39794:Ljava/util/Set;
      named chatSuggestions Lnet/minecraft/client/network/ClientCommandSource;chatSuggestions:Ljava/util/Set;
  • Constructor Details

    • ClientCommandSource

      public ClientCommandSource(ClientPlayNetworkHandler networkHandler, MinecraftClient client)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lfdm;<init>(Lfdk;Lemh;)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

      public Collection<String> getPlayerNames()
      Specified by:
      getPlayerNames in interface CommandSource
      Mappings:
      Namespace Name Mixin selector
      official p Ldt;p()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;
    • getChatSuggestions

      public Collection<String> getChatSuggestions()
      Specified by:
      getChatSuggestions in interface CommandSource
      Mappings:
      Namespace Name Mixin selector
      official w Ldt;w()Ljava/util/Collection;
      intermediary method_44750 Lnet/minecraft/class_2172;method_44750()Ljava/util/Collection;
      named getChatSuggestions Lnet/minecraft/command/CommandSource;getChatSuggestions()Ljava/util/Collection;
    • getEntitySuggestions

      public Collection<String> getEntitySuggestions()
      Specified by:
      getEntitySuggestions in interface CommandSource
      Mappings:
      Namespace Name Mixin selector
      official x Ldt;x()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()
      Specified by:
      getTeamNames in interface CommandSource
      Mappings:
      Namespace Name Mixin selector
      official q Ldt;q()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 Stream<Identifier> getSoundIds()
      Specified by:
      getSoundIds in interface CommandSource
      Mappings:
      Namespace Name Mixin selector
      official r Ldt;r()Ljava/util/stream/Stream;
      intermediary method_9254 Lnet/minecraft/class_2172;method_9254()Ljava/util/stream/Stream;
      named getSoundIds Lnet/minecraft/command/CommandSource;getSoundIds()Ljava/util/stream/Stream;
    • getRecipeIds

      public Stream<Identifier> getRecipeIds()
      Specified by:
      getRecipeIds in interface CommandSource
      Mappings:
      Namespace Name Mixin selector
      official s Ldt;s()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 interface CommandSource
      Mappings:
      Namespace Name Mixin selector
      official c Ldt;c(I)Z
      intermediary method_9259 Lnet/minecraft/class_2172;method_9259(I)Z
      named hasPermissionLevel Lnet/minecraft/command/CommandSource;hasPermissionLevel(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:
      listIdSuggestions in interface CommandSource
      Mappings:
      Namespace Name Mixin selector
      official a Ldt;a(Ladc;Ldt$a;Lcom/mojang/brigadier/suggestion/SuggestionsBuilder;Lcom/mojang/brigadier/context/CommandContext;)Ljava/util/concurrent/CompletableFuture;
      intermediary method_41213 Lnet/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;
      named listIdSuggestions Lnet/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;
    • getCompletions

      public CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> getCompletions(com.mojang.brigadier.context.CommandContext<?> context)
      Specified by:
      getCompletions in interface CommandSource
      Mappings:
      Namespace Name Mixin selector
      official a Ldt;a(Lcom/mojang/brigadier/context/CommandContext;)Ljava/util/concurrent/CompletableFuture;
      intermediary method_9261 Lnet/minecraft/class_2172;method_9261(Lcom/mojang/brigadier/context/CommandContext;)Ljava/util/concurrent/CompletableFuture;
      named getCompletions Lnet/minecraft/command/CommandSource;getCompletions(Lcom/mojang/brigadier/context/CommandContext;)Ljava/util/concurrent/CompletableFuture;
    • format

      private static String format(double d)
      Mappings:
      Namespace Name Mixin selector
      official a Lfdm;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 Lfdm;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()
      Specified by:
      getBlockPositionSuggestions in interface CommandSource
      Mappings:
      Namespace Name Mixin selector
      official y Ldt;y()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()
      Specified by:
      getPositionSuggestions in interface CommandSource
      Mappings:
      Namespace Name Mixin selector
      official z Ldt;z()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()
      Specified by:
      getWorldKeys in interface CommandSource
      Mappings:
      Namespace Name Mixin selector
      official t Ldt;t()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()
      Specified by:
      getRegistryManager in interface CommandSource
      Mappings:
      Namespace Name Mixin selector
      official u Ldt;u()Lhr;
      intermediary method_30497 Lnet/minecraft/class_2172;method_30497()Lnet/minecraft/class_5455;
      named getRegistryManager Lnet/minecraft/command/CommandSource;getRegistryManager()Lnet/minecraft/registry/DynamicRegistryManager;
    • getEnabledFeatures

      public FeatureSet getEnabledFeatures()
      Specified by:
      getEnabledFeatures in interface CommandSource
      Mappings:
      Namespace Name Mixin selector
      official v Ldt;v()Lcau;
      intermediary method_45549 Lnet/minecraft/class_2172;method_45549()Lnet/minecraft/class_7699;
      named getEnabledFeatures Lnet/minecraft/command/CommandSource;getEnabledFeatures()Lnet/minecraft/resource/featuretoggle/FeatureSet;
    • onCommandSuggestions

      public void onCommandSuggestions(int completionId, com.mojang.brigadier.suggestion.Suggestions suggestions)
      Mappings:
      Namespace Name Mixin selector
      official a Lfdm;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
    • onChatSuggestions

      public void onChatSuggestions(ChatSuggestionsS2CPacket.Action action, List<String> suggestions)
      Mappings:
      Namespace Name Mixin selector
      official a Lfdm;a(Lwb$a;Ljava/util/List;)V
      intermediary method_44764 Lnet/minecraft/class_637;method_44764(Lnet/minecraft/class_7597$class_7598;Ljava/util/List;)V
      named onChatSuggestions Lnet/minecraft/client/network/ClientCommandSource;onChatSuggestions(Lnet/minecraft/network/packet/s2c/play/ChatSuggestionsS2CPacket$Action;Ljava/util/List;)V