Package com.coderyo.coderyogui
Record Class EditSession
java.lang.Object
java.lang.Record
com.coderyo.coderyogui.EditSession
-
Constructor Summary
ConstructorsConstructorDescriptionEditSession(CustomGUI gui, String state, int slot, int pageId) EditSession(CustomGUI gui, String state, int slot, int pageId, List<String> tempData) Creates an instance of aEditSessionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.gui()Returns the value of theguirecord component.handleInput(org.bukkit.entity.Player player, String input, CoderyoGUI plugin) final inthashCode()Returns a hash code value for this object.intpageId()Returns the value of thepageIdrecord component.intslot()Returns the value of theslotrecord component.state()Returns the value of thestaterecord component.tempData()Returns the value of thetempDatarecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
EditSession
-
EditSession
Creates an instance of aEditSessionrecord class.- Parameters:
gui- the value for theguirecord componentstate- the value for thestaterecord componentslot- the value for theslotrecord componentpageId- the value for thepageIdrecord componenttempData- the value for thetempDatarecord component
-
-
Method Details
-
handleInput
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
gui
Returns the value of theguirecord component.- Returns:
- the value of the
guirecord component
-
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
slot
public int slot()Returns the value of theslotrecord component.- Returns:
- the value of the
slotrecord component
-
pageId
public int pageId()Returns the value of thepageIdrecord component.- Returns:
- the value of the
pageIdrecord component
-
tempData
Returns the value of thetempDatarecord component.- Returns:
- the value of the
tempDatarecord component
-