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 gq
intermediary net/minecraft/class_8856
named net/minecraft/command/SourcedCommandAction
  • Method Details

    • execute

      void execute(T source, CommandExecutionContext<T> context, int depth)
      Mappings:
      Namespace Name Mixin selector
      official execute Lgq;execute(Ljava/lang/Object;Lgn;I)V
      intermediary execute Lnet/minecraft/class_8856;execute(Ljava/lang/Object;Lnet/minecraft/class_8854;I)V
      named execute Lnet/minecraft/command/SourcedCommandAction;execute(Ljava/lang/Object;Lnet/minecraft/command/CommandExecutionContext;I)V
    • bind

      default CommandAction<T> bind(T source)
      Mappings:
      Namespace Name Mixin selector
      official bind Lgq;bind(Ljava/lang/Object;)Lgm;
      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;