Package net.minecraft.server.function
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 named net/minecraft/server/function/ExpandedMacrointermediary net/minecraft/class_8872official iknamed idintermediary comp_1994official anamed entriesintermediary comp_1995official b
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<SourcedCommandAction<T>> The field for theentriesrecord component.private final IdentifierThe field for theidrecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionentries()Returns the value of theentriesrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.final StringtoString()Returns a string representation of this record class.withMacroReplaced(@Nullable NbtCompound arguments, com.mojang.brigadier.CommandDispatcher<T> dispatcher)
-
Field Details
-
Constructor Details
-
ExpandedMacro
-
-
Method Details
-
withMacroReplaced
public Procedure<T> withMacroReplaced(@Nullable @Nullable NbtCompound arguments, com.mojang.brigadier.CommandDispatcher<T> dispatcher) throws MacroException - Specified by:
withMacroReplacedin interfaceCommandFunction<T>- Throws:
MacroException- Mappings:
Namespace Name Mixin selector named withMacroReplacedLnet/minecraft/server/function/CommandFunction;withMacroReplaced(Lnet/minecraft/nbt/NbtCompound;Lcom/mojang/brigadier/CommandDispatcher;)Lnet/minecraft/server/function/Procedure;intermediary method_52595Lnet/minecraft/class_2158;method_52595(Lnet/minecraft/class_2487;Lcom/mojang/brigadier/CommandDispatcher;)Lnet/minecraft/class_8868;official aLig;a(Lub;Lcom/mojang/brigadier/CommandDispatcher;)Lii;
-
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. -
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. -
equals
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 withObjects::equals(Object,Object). -
id
Returns the value of theidrecord component. -
entries
Returns the value of theentriesrecord component.
-