Interface Command

All Superinterfaces:
Comparable<Command>
All Known Implementing Classes:
AbstractCommand, AchievementCommand, BanCommand, BanIpCommand, BanListCommand, BlockDataCommand, ClearCommand, CloneCommand, DebugCommand, DefaultGameModeCommand, DeOpCommand, DifficultyCommand, EffectCommand, EnchantCommand, EntityDataCommand, ExecuteCommand, ExperienceCommand, FillCommand, GameModeCommand, GameRuleCommand, GiveCommand, HelpCommand, KickCommand, KillCommand, ListCommand, MeCommand, MessageCommand, OpCommand, PardonCommand, PardonIpCommand, ParticleCommand, PlaySoundCommand, PublishCommand, ReplaceItemCommand, SaveAllCommand, SaveOffCommand, SaveOnCommand, SayCommand, ScoreboardCommand, SeedCommand, SetBlockCommand, SetIdleTimeoutCommand, SetWorldSpawnCommand, SpawnPointCommand, SpreadPlayersCommand, StatsCommand, StopCommand, SummonCommand, TeleportCommand, TellRawCommand, TestForBlockCommand, TestForBlocksCommand, TestForCommand, TimeCommand, TitleCommand, ToggleDownfallCommand, TriggerCommand, WeatherCommand, WhitelistCommand, WorldBorderCommand

public interface Command
extends Comparable<Command>
Mappings:
Namespace Name
official k
intermediary net/minecraft/class_1606
named net/minecraft/command/Command
  • Method Details

    • getCommandName

      String getCommandName()
      Mappings:
      Namespace Name Mixin selector
      official c Lk;c()Ljava/lang/String;
      intermediary method_5889 Lnet/minecraft/class_1606;method_5889()Ljava/lang/String;
      named getCommandName Lnet/minecraft/command/Command;getCommandName()Ljava/lang/String;
    • getUsageTranslationKey

      String getUsageTranslationKey​(CommandSource source)
      Mappings:
      Namespace Name Mixin selector
      official c Lk;c(Lm;)Ljava/lang/String;
      intermediary method_5890 Lnet/minecraft/class_1606;method_5890(Lnet/minecraft/class_1659;)Ljava/lang/String;
      named getUsageTranslationKey Lnet/minecraft/command/Command;getUsageTranslationKey(Lnet/minecraft/command/CommandSource;)Ljava/lang/String;
    • getAliases

      List<String> getAliases()
      Mappings:
      Namespace Name Mixin selector
      official b Lk;b()Ljava/util/List;
      intermediary method_5887 Lnet/minecraft/class_1606;method_5887()Ljava/util/List;
      named getAliases Lnet/minecraft/command/Command;getAliases()Ljava/util/List;
    • execute

      void execute​(CommandSource source, String[] args) throws CommandException
      Throws:
      CommandException
      Mappings:
      Namespace Name Mixin selector
      official a Lk;a(Lm;[Ljava/lang/String;)V
      intermediary method_5885 Lnet/minecraft/class_1606;method_5885(Lnet/minecraft/class_1659;[Ljava/lang/String;)V
      named execute Lnet/minecraft/command/Command;execute(Lnet/minecraft/command/CommandSource;[Ljava/lang/String;)V
    • isAccessible

      boolean isAccessible​(CommandSource source)
      Mappings:
      Namespace Name Mixin selector
      official a Lk;a(Lm;)Z
      intermediary method_5884 Lnet/minecraft/class_1606;method_5884(Lnet/minecraft/class_1659;)Z
      named isAccessible Lnet/minecraft/command/Command;isAccessible(Lnet/minecraft/command/CommandSource;)Z
    • getAutoCompleteHints

      List<String> getAutoCompleteHints​(CommandSource source, String[] args, BlockPos pos)
      Mappings:
      Namespace Name Mixin selector
      official a Lk;a(Lm;[Ljava/lang/String;Lcj;)Ljava/util/List;
      intermediary method_5886 Lnet/minecraft/class_1606;method_5886(Lnet/minecraft/class_1659;[Ljava/lang/String;Lnet/minecraft/class_1372;)Ljava/util/List;
      named getAutoCompleteHints Lnet/minecraft/command/Command;getAutoCompleteHints(Lnet/minecraft/command/CommandSource;[Ljava/lang/String;Lnet/minecraft/util/math/BlockPos;)Ljava/util/List;
    • isUsernameAtIndex

      boolean isUsernameAtIndex​(String[] args, int index)
      Mappings:
      Namespace Name Mixin selector
      official b Lk;b([Ljava/lang/String;I)Z
      intermediary method_5888 Lnet/minecraft/class_1606;method_5888([Ljava/lang/String;I)Z
      named isUsernameAtIndex Lnet/minecraft/command/Command;isUsernameAtIndex([Ljava/lang/String;I)Z