Package net.minecraft.dialog.type
Record Class NoticeDialog
java.lang.Object
java.lang.Record
net.minecraft.dialog.type.NoticeDialog
- Record Components:
common-action-
- All Implemented Interfaces:
Dialog,SimpleDialog
public record NoticeDialog(DialogCommonData common, DialogActionButtonData action)
extends Record
implements SimpleDialog
- Mappings:
Namespace Name named net/minecraft/dialog/type/NoticeDialogintermediary net/minecraft/class_11428official asgnamed commonintermediary comp_4305official inamed actionintermediary comp_4396official j
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final DialogActionButtonDataThe field for theactionrecord component.static final com.mojang.serialization.MapCodec<NoticeDialog> private final DialogCommonDataThe field for thecommonrecord component.static final DialogActionButtonDataFields inherited from interface net.minecraft.dialog.type.Dialog
ENTRY_CODEC, ENTRY_LIST_CODEC, ENTRY_PACKET_CODEC, PACKET_CODEC, WIDTH_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionNoticeDialog(DialogCommonData dialogCommonData, DialogActionButtonData dialogActionButtonData) -
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<NoticeDialog> getCodec()final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
common
The field for thecommonrecord component. -
action
The field for theactionrecord component. -
OK_BUTTON
- Mappings:
Namespace Name Mixin selector named OK_BUTTONLnet/minecraft/dialog/type/NoticeDialog;OK_BUTTON:Lnet/minecraft/dialog/DialogActionButtonData;intermediary field_60633Lnet/minecraft/class_11428;field_60633:Lnet/minecraft/class_11519;official aLasg;a:Laru;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/dialog/type/NoticeDialog;CODEC:Lcom/mojang/serialization/MapCodec;intermediary field_60634Lnet/minecraft/class_11428;field_60634:Lcom/mojang/serialization/MapCodec;official hLasg;h:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
NoticeDialog
public NoticeDialog(DialogCommonData dialogCommonData, DialogActionButtonData dialogActionButtonData)
-
-
Method Details
-
getCodec
- Specified by:
getCodecin interfaceDialog- Specified by:
getCodecin interfaceSimpleDialog- 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 aLarz;a()Lcom/mojang/serialization/MapCodec;
-
getCancelAction
- Specified by:
getCancelActionin interfaceDialog- Mappings:
Namespace Name Mixin selector named getCancelActionLnet/minecraft/dialog/type/Dialog;getCancelAction()Ljava/util/Optional;intermediary method_72060Lnet/minecraft/class_11419;method_72060()Ljava/util/Optional;official dLarz;d()Ljava/util/Optional;
-
getButtons
- Specified by:
getButtonsin interfaceSimpleDialog- Mappings:
Namespace Name Mixin selector named getButtonsLnet/minecraft/dialog/type/SimpleDialog;getButtons()Ljava/util/List;intermediary method_71698Lnet/minecraft/class_11430;method_71698()Ljava/util/List;official bLasi;b()Ljava/util/List;
-
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. -
action
Returns the value of theactionrecord component.- Returns:
- the value of the
actionrecord component
-