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
official gu
intermediary net/minecraft/class_8858
named net/minecraft/command/SingleCommandAction
  • Field Details

    • FORK_LIMIT_EXCEPTION

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

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

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

    • SingleCommandAction

      public SingleCommandAction(String command, com.mojang.brigadier.context.ContextChain<T> contextChain)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lgu;<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
      named <init> Lnet/minecraft/command/SingleCommandAction;<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
      official a Lgu;a(Ldu;Ljava/util/List;Lgo;Lgq;Lgj;)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
      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
    • traceCommandStart

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

      public String toString()
      Overrides:
      toString in class Object