Record Class ExpandedMacro<T>

java.lang.Object
java.lang.Record
net.minecraft.server.function.ExpandedMacro<T>
Record Components:
id -
entries -
All Implemented Interfaces:
CommandFunction<T>, Procedure<T>

public record ExpandedMacro<T>(Identifier id, List<SourcedCommandAction<T>> entries) extends Record implements CommandFunction<T>, Procedure<T>
Mappings:
Namespace Name
official hf
intermediary net/minecraft/class_8872
named net/minecraft/server/function/ExpandedMacro
official a
intermediary comp_1994
named id
official b
intermediary comp_1995
named entries
  • Field Details

  • Constructor Details

  • Method Details

    • withMacroReplaced

      public Procedure<T> withMacroReplaced(@Nullable @Nullable NbtCompound arguments, com.mojang.brigadier.CommandDispatcher<T> dispatcher, T source) throws MacroException
      Specified by:
      withMacroReplaced in interface CommandFunction<T>
      Throws:
      MacroException
      Mappings:
      Namespace Name Mixin selector
      official a Lhb;a(Lsn;Lcom/mojang/brigadier/CommandDispatcher;Ljava/lang/Object;)Lhd;
      intermediary method_52595 Lnet/minecraft/class_2158;method_52595(Lnet/minecraft/class_2487;Lcom/mojang/brigadier/CommandDispatcher;Ljava/lang/Object;)Lnet/minecraft/class_8868;
      named withMacroReplaced Lnet/minecraft/server/function/CommandFunction;withMacroReplaced(Lnet/minecraft/nbt/NbtCompound;Lcom/mojang/brigadier/CommandDispatcher;Ljava/lang/Object;)Lnet/minecraft/server/function/Procedure;
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • id

      public Identifier id()
      Specified by:
      id in interface CommandFunction<T>
      Specified by:
      id in interface Procedure<T>
      Mappings:
      Namespace Name Mixin selector
      official a Lhb;a()Lahg;
      intermediary comp_1994 Lnet/minecraft/class_2158;comp_1994()Lnet/minecraft/class_2960;
      named id Lnet/minecraft/server/function/CommandFunction;id()Lnet/minecraft/util/Identifier;
    • entries

      public List<SourcedCommandAction<T>> entries()
      Specified by:
      entries in interface Procedure<T>
      Mappings:
      Namespace Name Mixin selector
      official b Lhd;b()Ljava/util/List;
      intermediary comp_1995 Lnet/minecraft/class_8868;comp_1995()Ljava/util/List;
      named entries Lnet/minecraft/server/function/Procedure;entries()Ljava/util/List;