Package net.minecraft.dialog.type
Record Class SimpleInputFormDialog
java.lang.Object
java.lang.Record
net.minecraft.dialog.type.SimpleInputFormDialog
- Record Components:
common-inputs-action-
- All Implemented Interfaces:
Dialog,InputFormDialog
public record SimpleInputFormDialog(DialogCommonData common, List<InputFormDialog.DialogInput> inputs, InputFormDialog.DialogAction action)
extends Record
implements InputFormDialog
- Mappings:
Namespace Name named net/minecraft/dialog/type/SimpleInputFormDialogintermediary net/minecraft/class_11431official asdnamed commonintermediary comp_4305official hnamed inputsintermediary comp_4322official inamed actionintermediary comp_4323official j
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.dialog.type.InputFormDialog
InputFormDialog.DialogAction, InputFormDialog.DialogInput -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final InputFormDialog.DialogActionThe field for theactionrecord component.static final com.mojang.serialization.MapCodec<SimpleInputFormDialog> private final DialogCommonDataThe field for thecommonrecord component.private final List<InputFormDialog.DialogInput> The field for theinputsrecord component.Fields inherited from interface net.minecraft.dialog.type.Dialog
ENTRY_CODEC, ENTRY_LIST_CODEC, ENTRY_PACKET_CODEC, PACKET_CODEC, WIDTH_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionSimpleInputFormDialog(DialogCommonData dialogCommonData, List<InputFormDialog.DialogInput> list, InputFormDialog.DialogAction dialogAction) -
Method Summary
Modifier and TypeMethodDescriptionaction()Returns the value of theactionrecord component.common()Returns the value of thecommonrecord component.final booleanIndicates whether some other object is "equal to" this one.com.mojang.serialization.MapCodec<SimpleInputFormDialog> getCodec()final inthashCode()Returns a hash code value for this object.inputs()Returns the value of theinputsrecord component.final StringtoString()Returns a string representation of this record class.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.dialog.type.InputFormDialog
onCancel
-
Field Details
-
common
The field for thecommonrecord component. -
inputs
The field for theinputsrecord component. -
action
The field for theactionrecord component. -
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/dialog/type/SimpleInputFormDialog;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_60636Lnet/minecraft/class_11431;field_60636:Lcom/mojang/serialization/MapCodec;official aLasd;a:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
SimpleInputFormDialog
public SimpleInputFormDialog(DialogCommonData dialogCommonData, List<InputFormDialog.DialogInput> list, InputFormDialog.DialogAction dialogAction)
-
-
Method Details
-
getCodec
- Specified by:
getCodecin interfaceDialog- Specified by:
getCodecin interfaceInputFormDialog- Mappings:
Namespace Name Mixin selector named getCodecLnet/minecraft/dialog/type/Dialog;getCodec()Lcom/mojang/serialization/MapCodec;intermediary method_71692Lnet/minecraft/class_11419;method_71692()Lcom/mojang/serialization/MapCodec;official aLart;a()Lcom/mojang/serialization/MapCodec;
-
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). -
common
Returns the value of thecommonrecord component. -
inputs
Returns the value of theinputsrecord component.- Returns:
- the value of the
inputsrecord component
-
action
Returns the value of theactionrecord component.- Returns:
- the value of the
actionrecord component
-