Package net.minecraft.dialog.action
Record Class SimpleDialogAction
java.lang.Object
java.lang.Record
net.minecraft.dialog.action.SimpleDialogAction
- Record Components:
value-
- All Implemented Interfaces:
DialogAction
- Mappings:
Namespace Name named net/minecraft/dialog/action/SimpleDialogActionintermediary net/minecraft/class_11525official asonamed valueintermediary comp_4399official c
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.dialog.action.DialogAction
DialogAction.ValueGetter -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Map<ClickEvent.Action, com.mojang.serialization.MapCodec<SimpleDialogAction>> private final ClickEventThe field for thevaluerecord component.Fields inherited from interface net.minecraft.dialog.action.DialogAction
CODEC -
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<SimpleDialogAction> getCodec()final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.value()Returns the value of thevaluerecord component.
-
Field Details
-
value
The field for thevaluerecord component. -
CODECS
public static final Map<ClickEvent.Action,com.mojang.serialization.MapCodec<SimpleDialogAction>> CODECS- Mappings:
Namespace Name Mixin selector named CODECSLnet/minecraft/dialog/action/SimpleDialogAction;CODECS:Ljava/util/Map;intermediary field_60977Lnet/minecraft/class_11525;field_60977:Ljava/util/Map;official bLaso;b:Ljava/util/Map;
-
-
Constructor Details
-
SimpleDialogAction
-
-
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). -
value
Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-