Package net.minecraft.dialog.submit
Record Class CommandTemplateSubmitMethod
java.lang.Object
java.lang.Record
net.minecraft.dialog.submit.CommandTemplateSubmitMethod
- Record Components:
template-
- All Implemented Interfaces:
SubmitMethod
public record CommandTemplateSubmitMethod(ParsedTemplate template)
extends Record
implements SubmitMethod
- Mappings:
Namespace Name named net/minecraft/dialog/submit/CommandTemplateSubmitMethodintermediary net/minecraft/class_11447official asrnamed templateintermediary comp_4355official c
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<CommandTemplateSubmitMethod> private final ParsedTemplateThe field for thetemplaterecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.com.mojang.serialization.MapCodec<CommandTemplateSubmitMethod> getCodec()final inthashCode()Returns a hash code value for this object.template()Returns the value of thetemplaterecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
template
The field for thetemplaterecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/dialog/submit/CommandTemplateSubmitMethod;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_60651Lnet/minecraft/class_11447;field_60651:Lcom/mojang/serialization/MapCodec;official aLasr;a:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
CommandTemplateSubmitMethod
-
-
Method Details
-
getCodec
- Specified by:
getCodecin interfaceSubmitMethod- Mappings:
Namespace Name Mixin selector named getCodecLnet/minecraft/dialog/submit/SubmitMethod;getCodec()Lcom/mojang/serialization/MapCodec;intermediary method_71738Lnet/minecraft/class_11452;method_71738()Lcom/mojang/serialization/MapCodec;official aLasw;a()Lcom/mojang/serialization/MapCodec;
-
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). -
template
Returns the value of thetemplaterecord component.- Returns:
- the value of the
templaterecord component
-