Class SingleCommandAction<T extends AbstractServerCommandSource<T>>

java.lang.Object
net.minecraft.command.SingleCommandAction<T>
Direct Known Subclasses:
SingleCommandAction.MultiSource, SingleCommandAction.SingleSource, SingleCommandAction.Sourced

public class SingleCommandAction<T extends AbstractServerCommandSource<T>> extends Object
Mappings:
Namespace Name
named net/minecraft/command/SingleCommandAction
intermediary net/minecraft/class_8858
official ic
  • Field Details

    • FORK_LIMIT_EXCEPTION

      public static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType FORK_LIMIT_EXCEPTION
      Mappings:
      Namespace Name Mixin selector
      named FORK_LIMIT_EXCEPTION Lnet/minecraft/command/SingleCommandAction;FORK_LIMIT_EXCEPTION:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      intermediary field_46739 Lnet/minecraft/class_8858;field_46739:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
      official a Lic;a:Lcom/mojang/brigadier/exceptions/DynamicCommandExceptionType;
    • command

      private final String command
      Mappings:
      Namespace Name Mixin selector
      named command Lnet/minecraft/command/SingleCommandAction;command:Ljava/lang/String;
      intermediary field_46740 Lnet/minecraft/class_8858;field_46740:Ljava/lang/String;
      official b Lic;b:Ljava/lang/String;
    • contextChain

      private final com.mojang.brigadier.context.ContextChain<T extends AbstractServerCommandSource<T>> contextChain
      Mappings:
      Namespace Name Mixin selector
      named contextChain Lnet/minecraft/command/SingleCommandAction;contextChain:Lcom/mojang/brigadier/context/ContextChain;
      intermediary field_46741 Lnet/minecraft/class_8858;field_46741:Lcom/mojang/brigadier/context/ContextChain;
      official c Lic;c:Lcom/mojang/brigadier/context/ContextChain;
  • Constructor Details

    • SingleCommandAction

      public SingleCommandAction(String command, com.mojang.brigadier.context.ContextChain<T> contextChain)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/command/SingleCommandAction;<init>(Ljava/lang/String;Lcom/mojang/brigadier/context/ContextChain;)V
      intermediary <init> Lnet/minecraft/class_8858;<init>(Ljava/lang/String;Lcom/mojang/brigadier/context/ContextChain;)V
      official <init> Lic;<init>(Ljava/lang/String;Lcom/mojang/brigadier/context/ContextChain;)V
  • Method Details

    • execute

      protected void execute(T baseSource, List<T> sources, CommandExecutionContext<T> context, Frame frame, ExecutionFlags flags)
      Mappings:
      Namespace Name Mixin selector
      named execute Lnet/minecraft/command/SingleCommandAction;execute(Lnet/minecraft/server/command/AbstractServerCommandSource;Ljava/util/List;Lnet/minecraft/command/CommandExecutionContext;Lnet/minecraft/command/Frame;Lnet/minecraft/command/ExecutionFlags;)V
      intermediary method_54410 Lnet/minecraft/class_8858;method_54410(Lnet/minecraft/class_8839;Ljava/util/List;Lnet/minecraft/class_8854;Lnet/minecraft/class_8937;Lnet/minecraft/class_8936;)V
      official a Lic;a(Ley;Ljava/util/List;Lhw;Lhy;Lhr;)V
    • traceCommandStart

      protected void traceCommandStart(CommandExecutionContext<T> context, Frame frame)
      Mappings:
      Namespace Name Mixin selector
      named traceCommandStart Lnet/minecraft/command/SingleCommandAction;traceCommandStart(Lnet/minecraft/command/CommandExecutionContext;Lnet/minecraft/command/Frame;)V
      intermediary method_54407 Lnet/minecraft/class_8858;method_54407(Lnet/minecraft/class_8854;Lnet/minecraft/class_8937;)V
      official a Lic;a(Lhw;Lhy;)V
    • toString

      public String toString()
      Overrides:
      toString in class Object