Record Class PlayerSessionConfig
java.lang.Object
java.lang.Record
tech.skworks.tachyon.plugin.core.playersession.PlayerSessionConfig
Project Tachyon
Class PlayerSessionConfig
- Since:
- 1.0.0-SNAPSHOT
- Version:
- 1.0
- Author:
- Jimmy (vSKAH) - 24/04/2026
-
Constructor Summary
ConstructorsConstructorDescriptionPlayerSessionConfig(int heartbeatSendDelay, boolean logHeartbeatSend) Creates an instance of aPlayerSessionConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.static PlayerSessionConfigfromFile(@NotNull org.bukkit.configuration.file.FileConfiguration fileConfiguration) final inthashCode()Returns a hash code value for this object.intReturns the value of theheartbeatSendDelayrecord component.booleanReturns the value of thelogHeartbeatSendrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PlayerSessionConfig
public PlayerSessionConfig(int heartbeatSendDelay, boolean logHeartbeatSend) Creates an instance of aPlayerSessionConfigrecord class.- Parameters:
heartbeatSendDelay- the value for theheartbeatSendDelayrecord componentlogHeartbeatSend- the value for thelogHeartbeatSendrecord component
-
-
Method Details
-
fromFile
public static PlayerSessionConfig fromFile(@NotNull @NotNull org.bukkit.configuration.file.FileConfiguration fileConfiguration) -
toString
-
hashCode
-
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 with thecomparemethod from their corresponding wrapper classes. -
heartbeatSendDelay
public int heartbeatSendDelay()Returns the value of theheartbeatSendDelayrecord component.- Returns:
- the value of the
heartbeatSendDelayrecord component
-
logHeartbeatSend
public boolean logHeartbeatSend()Returns the value of thelogHeartbeatSendrecord component.- Returns:
- the value of the
logHeartbeatSendrecord component
-