Package net.minecraft.dialog.submit
Record Class CustomTemplateSubmitMethod
java.lang.Object
java.lang.Record
net.minecraft.dialog.submit.CustomTemplateSubmitMethod
- Record Components:
id-template-
- All Implemented Interfaces:
CustomSubmitMethod,SubmitMethod
public record CustomTemplateSubmitMethod(Identifier id, ParsedTemplate template)
extends Record
implements CustomSubmitMethod
- Mappings:
Namespace Name named net/minecraft/dialog/submit/CustomTemplateSubmitMethodintermediary net/minecraft/class_11450official asunamed idintermediary comp_4356official cnamed templateintermediary comp_4357official d
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<CustomTemplateSubmitMethod> private final IdentifierThe field for theidrecord component.private final ParsedTemplateThe field for thetemplaterecord component. -
Constructor Summary
ConstructorsConstructorDescriptionCustomTemplateSubmitMethod(Identifier identifier, ParsedTemplate parsedTemplate) -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.com.mojang.serialization.MapCodec<CustomTemplateSubmitMethod> getCodec()getSentValue(Map<String, String> data) final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.template()Returns the value of thetemplaterecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
id
The field for theidrecord component. -
template
The field for thetemplaterecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/dialog/submit/CustomTemplateSubmitMethod;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_60656Lnet/minecraft/class_11450;field_60656:Lcom/mojang/serialization/MapCodec;official aLasu;a:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
CustomTemplateSubmitMethod
-
-
Method Details
-
getCodec
- Specified by:
getCodecin interfaceCustomSubmitMethod- 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;
-
getSentValue
- Specified by:
getSentValuein interfaceCustomSubmitMethod- Mappings:
Namespace Name Mixin selector named getSentValueLnet/minecraft/dialog/submit/CustomSubmitMethod;getSentValue(Ljava/util/Map;)Ljava/lang/String;intermediary method_71742Lnet/minecraft/class_11449;method_71742(Ljava/util/Map;)Ljava/lang/String;official aLast;a(Ljava/util/Map;)Ljava/lang/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. -
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.- Specified by:
idin interfaceCustomSubmitMethod- Returns:
- the value of the
idrecord component
-
template
Returns the value of thetemplaterecord component.- Returns:
- the value of the
templaterecord component
-