Package net.minecraft.dialog.action
Record Class DynamicCustomDialogAction
java.lang.Object
java.lang.Record
net.minecraft.dialog.action.DynamicCustomDialogAction
- Record Components:
id-additions-
- All Implemented Interfaces:
DialogAction
public record DynamicCustomDialogAction(Identifier id, Optional<NbtCompound> additions)
extends Record
implements DialogAction
- Mappings:
Namespace Name named net/minecraft/dialog/action/DynamicCustomDialogActionintermediary net/minecraft/class_11524official asmnamed idintermediary comp_4397official cnamed additionsintermediary comp_4398official d
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.dialog.action.DialogAction
DialogAction.ValueGetter -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Optional<NbtCompound> The field for theadditionsrecord component.static final com.mojang.serialization.MapCodec<DynamicCustomDialogAction> private final IdentifierThe field for theidrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionDynamicCustomDialogAction(Identifier identifier, Optional<NbtCompound> optional) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theadditionsrecord component.createClickEvent(Map<String, DialogAction.ValueGetter> valueGetters) final booleanIndicates whether some other object is "equal to" this one.com.mojang.serialization.MapCodec<DynamicCustomDialogAction> getCodec()final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
id
The field for theidrecord component. -
additions
The field for theadditionsrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/dialog/action/DynamicCustomDialogAction;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_60976Lnet/minecraft/class_11524;field_60976:Lcom/mojang/serialization/MapCodec;official bLasm;b:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
DynamicCustomDialogAction
-
-
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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
additions
Returns the value of theadditionsrecord component.- Returns:
- the value of the
additionsrecord component
-