Package net.minecraft.dialog.type
Record Class NoticeDialog
java.lang.Object
java.lang.Record
net.minecraft.dialog.type.NoticeDialog
- Record Components:
common--
- All Implemented Interfaces:
Dialog,SimpleDialog
public record NoticeDialog(DialogCommonData common, DialogButton button)
extends Record
implements SimpleDialog
- Mappings:
Namespace Name named net/minecraft/dialog/type/NoticeDialogintermediary net/minecraft/class_11428official asanamed commonintermediary comp_4305official inamed buttonintermediary comp_4320official j
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final DialogButtonThe field for thebuttonrecord component.static final com.mojang.serialization.MapCodec<NoticeDialog> private final DialogCommonDataThe field for thecommonrecord component.static final DialogButtonFields inherited from interface net.minecraft.dialog.type.Dialog
ENTRY_CODEC, ENTRY_LIST_CODEC, ENTRY_PACKET_CODEC, PACKET_CODEC, WIDTH_CODEC -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbutton()Returns the value of thebuttonrecord 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.onCancel()final StringtoString()Returns a string representation of this record class.
-
Field Details
-
common
The field for thecommonrecord component. -
button
The field for thebuttonrecord component. -
OK_BUTTON
- Mappings:
Namespace Name Mixin selector named OK_BUTTONLnet/minecraft/dialog/type/NoticeDialog;OK_BUTTON:Lnet/minecraft/dialog/DialogButton;intermediary field_60633Lnet/minecraft/class_11428;field_60633:Lnet/minecraft/class_11415;official aLasa;a:Larp;
-
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 hLasa;h:Lcom/mojang/serialization/MapCodec;
-
-
Constructor Details
-
NoticeDialog
-
-
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 aLart;a()Lcom/mojang/serialization/MapCodec;
-
onCancel
-
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 cLasc;c()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. -
button
Returns the value of thebuttonrecord component.- Returns:
- the value of the
buttonrecord component
-