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/NoticeDialog
intermediary net/minecraft/class_11428
official asa
named common
intermediary comp_4305
official i
named action
intermediary comp_4396
official j
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final DialogActionButtonData
The field for theaction
record component.static final com.mojang.serialization.MapCodec
<NoticeDialog> private final DialogCommonData
The field for thecommon
record component.static final DialogActionButtonData
Fields 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 theaction
record component.common()
Returns the value of thecommon
record component.final boolean
Indicates whether some other object is "equal to" this one.com.mojang.serialization.MapCodec
<NoticeDialog> getCodec()
final int
hashCode()
Returns a hash code value for this object.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
common
The field for thecommon
record component. -
action
The field for theaction
record component. -
OK_BUTTON
- Mappings:
Namespace Name Mixin selector named OK_BUTTON
Lnet/minecraft/dialog/type/NoticeDialog;OK_BUTTON:Lnet/minecraft/dialog/DialogActionButtonData;
intermediary field_60633
Lnet/minecraft/class_11428;field_60633:Lnet/minecraft/class_11519;
official a
Lasa;a:Laro;
-
CODEC
- Mappings:
Namespace Name Mixin selector named CODEC
Lnet/minecraft/dialog/type/NoticeDialog;CODEC:Lcom/mojang/serialization/MapCodec;
intermediary field_60634
Lnet/minecraft/class_11428;field_60634:Lcom/mojang/serialization/MapCodec;
official h
Lasa;h:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
NoticeDialog
public NoticeDialog(DialogCommonData dialogCommonData, DialogActionButtonData dialogActionButtonData)
-
-
Method Details
-
getCodec
- Specified by:
getCodec
in interfaceDialog
- Specified by:
getCodec
in interfaceSimpleDialog
- Mappings:
Namespace Name Mixin selector named getCodec
Lnet/minecraft/dialog/type/Dialog;getCodec()Lcom/mojang/serialization/MapCodec;
intermediary method_71692
Lnet/minecraft/class_11419;method_71692()Lcom/mojang/serialization/MapCodec;
official a
Lart;a()Lcom/mojang/serialization/MapCodec;
-
getCancelAction
- Specified by:
getCancelAction
in interfaceDialog
- Mappings:
Namespace Name Mixin selector named getCancelAction
Lnet/minecraft/dialog/type/Dialog;getCancelAction()Ljava/util/Optional;
intermediary method_72060
Lnet/minecraft/class_11419;method_72060()Ljava/util/Optional;
official d
Lart;d()Ljava/util/Optional;
-
getButtons
- Specified by:
getButtons
in interfaceSimpleDialog
- Mappings:
Namespace Name Mixin selector named getButtons
Lnet/minecraft/dialog/type/SimpleDialog;getButtons()Ljava/util/List;
intermediary method_71698
Lnet/minecraft/class_11430;method_71698()Ljava/util/List;
official b
Lasc;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 thecommon
record component. -
action
Returns the value of theaction
record component.- Returns:
- the value of the
action
record component
-