Package net.swofty.gui
Record Class SkyBlockSignGUI.SignGUI
java.lang.Object
java.lang.Record
net.swofty.gui.SkyBlockSignGUI.SignGUI
- Enclosing class:
- SkyBlockSignGUI
public static record SkyBlockSignGUI.SignGUI(CompletableFuture<String> future, net.minestom.server.coordinate.Pos pos, net.minestom.server.instance.block.Block block)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionSignGUI(CompletableFuture<String> future, net.minestom.server.coordinate.Pos pos, net.minestom.server.instance.block.Block block) Creates an instance of aSignGUIrecord class. -
Method Summary
Modifier and TypeMethodDescriptionnet.minestom.server.instance.block.Blockblock()Returns the value of theblockrecord component.final booleanIndicates whether some other object is "equal to" this one.future()Returns the value of thefuturerecord component.final inthashCode()Returns a hash code value for this object.net.minestom.server.coordinate.Pospos()Returns the value of theposrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SignGUI
public SignGUI(CompletableFuture<String> future, net.minestom.server.coordinate.Pos pos, net.minestom.server.instance.block.Block block) Creates an instance of aSignGUIrecord class.- Parameters:
future- the value for thefuturerecord componentpos- the value for theposrecord componentblock- the value for theblockrecord 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). -
future
Returns the value of thefuturerecord component.- Returns:
- the value of the
futurerecord component
-
pos
public net.minestom.server.coordinate.Pos pos()Returns the value of theposrecord component.- Returns:
- the value of the
posrecord component
-
block
public net.minestom.server.instance.block.Block block()Returns the value of theblockrecord component.- Returns:
- the value of the
blockrecord component
-