Package net.minecraft.dialog.action
Record Class DynamicRunCommandDialogAction
java.lang.Object
java.lang.Record
net.minecraft.dialog.action.DynamicRunCommandDialogAction
- Record Components:
template-
- All Implemented Interfaces:
DialogAction
public record DynamicRunCommandDialogAction(ParsedTemplate template)
extends Record
implements DialogAction
- Mappings:
Namespace Name named net/minecraft/dialog/action/DynamicRunCommandDialogActionintermediary net/minecraft/class_11447official aslnamed templateintermediary comp_4355official c
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.dialog.action.DialogAction
DialogAction.ValueGetter -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.MapCodec<DynamicRunCommandDialogAction> private final ParsedTemplateThe field for thetemplaterecord component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateClickEvent(Map<String, DialogAction.ValueGetter> valueGetters) final booleanIndicates whether some other object is "equal to" this one.com.mojang.serialization.MapCodec<DynamicRunCommandDialogAction> 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/action/DynamicRunCommandDialogAction;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_60651Lnet/minecraft/class_11447;field_60651:Lcom/mojang/serialization/MapCodec;official bLasl;b:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
DynamicRunCommandDialogAction
-
-
Method Details
-
getCodec
- Specified by:
getCodecin interfaceDialogAction- Mappings:
Namespace Name Mixin selector named getCodecLnet/minecraft/dialog/action/DialogAction;getCodec()Lcom/mojang/serialization/MapCodec;intermediary method_71738Lnet/minecraft/class_11521;method_71738()Lcom/mojang/serialization/MapCodec;official aLasj;a()Lcom/mojang/serialization/MapCodec;
-
createClickEvent
- Specified by:
createClickEventin interfaceDialogAction- Mappings:
Namespace Name Mixin selector named createClickEventLnet/minecraft/dialog/action/DialogAction;createClickEvent(Ljava/util/Map;)Ljava/util/Optional;intermediary method_72068Lnet/minecraft/class_11521;method_72068(Ljava/util/Map;)Ljava/util/Optional;official aLasj;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
-