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/DynamicRunCommandDialogAction
intermediary net/minecraft/class_11447
official asf
named template
intermediary comp_4355
official 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 ParsedTemplate
The field for thetemplate
record component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateClickEvent
(Map<String, DialogAction.ValueGetter> valueGetters) final boolean
Indicates whether some other object is "equal to" this one.com.mojang.serialization.MapCodec
<DynamicRunCommandDialogAction> getCodec()
final int
hashCode()
Returns a hash code value for this object.template()
Returns the value of thetemplate
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
template
The field for thetemplate
record component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/dialog/action/DynamicRunCommandDialogAction;CODEC:Lcom/mojang/serialization/MapCodec;
intermediary field_60651
Lnet/minecraft/class_11447;field_60651:Lcom/mojang/serialization/MapCodec;
official b
Lasf;b:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
DynamicRunCommandDialogAction
-
-
Method Details
-
getCodec
- Specified by:
getCodec
in interfaceDialogAction
- Mappings:
Namespace Name Mixin selector named getCodec
Lnet/minecraft/dialog/action/DialogAction;getCodec()Lcom/mojang/serialization/MapCodec;
intermediary method_71738
Lnet/minecraft/class_11521;method_71738()Lcom/mojang/serialization/MapCodec;
official a
Lasd;a()Lcom/mojang/serialization/MapCodec;
-
createClickEvent
- Specified by:
createClickEvent
in interfaceDialogAction
- Mappings:
Namespace Name Mixin selector named createClickEvent
Lnet/minecraft/dialog/action/DialogAction;createClickEvent(Ljava/util/Map;)Ljava/util/Optional;
intermediary method_72068
Lnet/minecraft/class_11521;method_72068(Ljava/util/Map;)Ljava/util/Optional;
official a
Lasd;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 thetemplate
record component.- Returns:
- the value of the
template
record component
-