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:
class_11521
public record CommandTemplateSubmitMethod(ParsedTemplate template)
extends Record
implements class_11521
- Mappings:
Namespace Name named net/minecraft/dialog/submit/CommandTemplateSubmitMethodintermediary net/minecraft/class_11447official asfnamed templateintermediary comp_4355official c
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.class_11521
class_11521.class_11522 -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<CommandTemplateSubmitMethod> private final ParsedTemplateThe field for thetemplaterecord component.Fields inherited from interface net.minecraft.class_11521
field_60973 -
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 bLasf;b:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
CommandTemplateSubmitMethod
-
-
Method Details
-
getCodec
- Specified by:
getCodecin interfaceclass_11521- Mappings:
Namespace Name Mixin selector named getCodecLnet/minecraft/class_11521;getCodec()Lcom/mojang/serialization/MapCodec;intermediary method_71738Lnet/minecraft/class_11521;method_71738()Lcom/mojang/serialization/MapCodec;official aLasd;a()Lcom/mojang/serialization/MapCodec;
-
method_72068
- Specified by:
method_72068in interfaceclass_11521- Mappings:
Namespace Name Mixin selector named method_72068Lnet/minecraft/class_11521;method_72068(Ljava/util/Map;)Ljava/util/Optional;intermediary method_72068Lnet/minecraft/class_11521;method_72068(Ljava/util/Map;)Ljava/util/Optional;official aLasd;a(Ljava/util/Map;)Ljava/util/Optional;
-
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
-