Interface SourcedCommandAction<T>

All Known Implementing Classes:
CommandFunctionAction, FixedCommandAction, SingleCommandAction.Sourced
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface SourcedCommandAction<T>
Mappings:
Namespace Name
official gs
intermediary net/minecraft/class_8856
named net/minecraft/command/SourcedCommandAction
  • Method Details

    • execute

      void execute(T source, CommandExecutionContext<T> context, Frame frame)
      Mappings:
      Namespace Name Mixin selector
      official execute Lgs;execute(Ljava/lang/Object;Lgo;Lgq;)V
      intermediary execute Lnet/minecraft/class_8856;execute(Ljava/lang/Object;Lnet/minecraft/class_8854;Lnet/minecraft/class_8937;)V
      named execute Lnet/minecraft/command/SourcedCommandAction;execute(Ljava/lang/Object;Lnet/minecraft/command/CommandExecutionContext;Lnet/minecraft/command/Frame;)V
    • bind

      default CommandAction<T> bind(T source)
      Mappings:
      Namespace Name Mixin selector
      official bind Lgs;bind(Ljava/lang/Object;)Lgn;
      intermediary bind Lnet/minecraft/class_8856;bind(Ljava/lang/Object;)Lnet/minecraft/class_8853;
      named bind Lnet/minecraft/command/SourcedCommandAction;bind(Ljava/lang/Object;)Lnet/minecraft/command/CommandAction;