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

    • FORK_LIMIT_EXCEPTION

      private static final com.mojang.brigadier.exceptions.DynamicCommandExceptionType FORK_LIMIT_EXCEPTION
      Mappings:
      Namespace Name Mixin selector
      official a Lgs;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 Lgs;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 Lgs;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> Lgs;<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(List<T> forks, VirtualMachine<T> vm, int depth, boolean silent) throws com.mojang.brigadier.exceptions.CommandSyntaxException
      Throws:
      com.mojang.brigadier.exceptions.CommandSyntaxException
      Mappings:
      Namespace Name Mixin selector
      official a Lgs;a(Ljava/util/List;Lgn;IZ)V
      intermediary method_54410 Lnet/minecraft/class_8858;method_54410(Ljava/util/List;Lnet/minecraft/class_8854;IZ)V
      named execute Lnet/minecraft/command/SingleCommandAction;execute(Ljava/util/List;Lnet/minecraft/command/VirtualMachine;IZ)V
    • fixAtDepth

      private static <T extends AbstractServerCommandSource<T>> Control<T> fixAtDepth(VirtualMachine<T> vm, int depth)
      Mappings:
      Namespace Name Mixin selector
      official b Lgs;b(Lgn;I)Lgo;
      intermediary method_54411 Lnet/minecraft/class_8858;method_54411(Lnet/minecraft/class_8854;I)Lnet/minecraft/class_8855;
      named fixAtDepth Lnet/minecraft/command/SingleCommandAction;fixAtDepth(Lnet/minecraft/command/VirtualMachine;I)Lnet/minecraft/command/Control;
    • traceCommandStart

      protected void traceCommandStart(VirtualMachine<T> vm, int depth)
      Mappings:
      Namespace Name Mixin selector
      official a Lgs;a(Lgn;I)V
      intermediary method_54407 Lnet/minecraft/class_8858;method_54407(Lnet/minecraft/class_8854;I)V
      named traceCommandStart Lnet/minecraft/command/SingleCommandAction;traceCommandStart(Lnet/minecraft/command/VirtualMachine;I)V
    • toString

      public String toString()
      Overrides:
      toString in class Object