Package ru.dragonestia.msb3.api.dialog
Record Class DialogButtonClick
java.lang.Object
java.lang.Record
ru.dragonestia.msb3.api.dialog.DialogButtonClick
public record DialogButtonClick(net.minestom.server.entity.Player player, Interlocutor interlocutor, Dialog dialog, DialogButton dialogButton, ButtonNumber buttonNumber, DialogueRenderer renderer)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionDialogButtonClick(net.minestom.server.entity.Player player, Interlocutor interlocutor, Dialog dialog, DialogButton dialogButton, ButtonNumber buttonNumber, DialogueRenderer renderer) Creates an instance of aDialogButtonClickrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thebuttonNumberrecord component.dialog()Returns the value of thedialogrecord component.Returns the value of thedialogButtonrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinterlocutorrecord component.net.minestom.server.entity.Playerplayer()Returns the value of theplayerrecord component.renderer()Returns the value of therendererrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DialogButtonClick
public DialogButtonClick(net.minestom.server.entity.Player player, Interlocutor interlocutor, Dialog dialog, DialogButton dialogButton, ButtonNumber buttonNumber, DialogueRenderer renderer) Creates an instance of aDialogButtonClickrecord class.- Parameters:
player- the value for theplayerrecord componentinterlocutor- the value for theinterlocutorrecord componentdialog- the value for thedialogrecord componentdialogButton- the value for thedialogButtonrecord componentbuttonNumber- the value for thebuttonNumberrecord componentrenderer- the value for therendererrecord component
-
-
Method Details
-
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). -
player
public net.minestom.server.entity.Player player()Returns the value of theplayerrecord component.- Returns:
- the value of the
playerrecord component
-
interlocutor
Returns the value of theinterlocutorrecord component.- Returns:
- the value of the
interlocutorrecord component
-
dialog
Returns the value of thedialogrecord component.- Returns:
- the value of the
dialogrecord component
-
dialogButton
Returns the value of thedialogButtonrecord component.- Returns:
- the value of the
dialogButtonrecord component
-
buttonNumber
Returns the value of thebuttonNumberrecord component.- Returns:
- the value of the
buttonNumberrecord component
-
renderer
Returns the value of therendererrecord component.- Returns:
- the value of the
rendererrecord component
-