Class CommandFunctionAction<T extends AbstractServerCommandSource<T>>

java.lang.Object
net.minecraft.command.CommandFunctionAction<T>
All Implemented Interfaces:
SourcedCommandAction<T>

public class CommandFunctionAction<T extends AbstractServerCommandSource<T>> extends Object implements SourcedCommandAction<T>
Mappings:
Namespace Name
named net/minecraft/command/CommandFunctionAction
intermediary net/minecraft/class_8862
official id
  • Field Details

    • function

      private final Procedure<T extends AbstractServerCommandSource<T>> function
      Mappings:
      Namespace Name Mixin selector
      named function Lnet/minecraft/command/CommandFunctionAction;function:Lnet/minecraft/server/function/Procedure;
      intermediary field_46747 Lnet/minecraft/class_8862;field_46747:Lnet/minecraft/class_8868;
      official a Lid;a:Lim;
    • returnValueConsumer

      private final ReturnValueConsumer returnValueConsumer
      Mappings:
      Namespace Name Mixin selector
      named returnValueConsumer Lnet/minecraft/command/CommandFunctionAction;returnValueConsumer:Lnet/minecraft/command/ReturnValueConsumer;
      intermediary field_47166 Lnet/minecraft/class_8862;field_47166:Lnet/minecraft/class_8935;
      official b Lid;b:Let;
    • propagateReturn

      private final boolean propagateReturn
      Mappings:
      Namespace Name Mixin selector
      named propagateReturn Lnet/minecraft/command/CommandFunctionAction;propagateReturn:Z
      intermediary field_47167 Lnet/minecraft/class_8862;field_47167:Z
      official c Lid;c:Z
  • Constructor Details

    • CommandFunctionAction

      public CommandFunctionAction(Procedure<T> function, ReturnValueConsumer returnValueConsumer, boolean propagateReturn)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/command/CommandFunctionAction;<init>(Lnet/minecraft/server/function/Procedure;Lnet/minecraft/command/ReturnValueConsumer;Z)V
      intermediary <init> Lnet/minecraft/class_8862;<init>(Lnet/minecraft/class_8868;Lnet/minecraft/class_8935;Z)V
      official <init> Lid;<init>(Lim;Let;Z)V
  • Method Details

    • execute

      public void execute(T t, CommandExecutionContext<T> commandExecutionContext, Frame frame)
      Specified by:
      execute in interface SourcedCommandAction<T extends AbstractServerCommandSource<T>>
      Mappings:
      Namespace Name Mixin selector
      named execute Lnet/minecraft/command/CommandFunctionAction;execute(Lnet/minecraft/server/command/AbstractServerCommandSource;Lnet/minecraft/command/CommandExecutionContext;Lnet/minecraft/command/Frame;)V
      intermediary method_54851 Lnet/minecraft/class_8862;method_54851(Lnet/minecraft/class_8839;Lnet/minecraft/class_8854;Lnet/minecraft/class_8937;)V
      official a Lid;a(Ley;Lhw;Lhy;)V