Record Class TachyonConfig
java.lang.Object
java.lang.Record
tech.skworks.tachyon.plugin.spigot.config.TachyonConfig
public record TachyonConfig(String serverName, String grpcHost, int grpcPort, MetricsConfig metricsConfig, AuditConfig auditConfig, PlayerSessionConfig playerSessionConfig, PlayerDataConfig playerDataConfig)
extends Record
Project Tachyon
Class TachyonConfig
- Since:
- 1.0.0-SNAPSHOT
- Version:
- 1.0
- Author:
- Jimmy (vSKAH) - 09/04/2026
-
Constructor Summary
ConstructorsConstructorDescriptionTachyonConfig(String serverName, String grpcHost, int grpcPort, MetricsConfig metricsConfig, AuditConfig auditConfig, PlayerSessionConfig playerSessionConfig, PlayerDataConfig playerDataConfig) Creates an instance of aTachyonConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theauditConfigrecord component.final booleanIndicates whether some other object is "equal to" this one.static TachyonConfigfromFile(org.bukkit.configuration.file.FileConfiguration configuration) grpcHost()Returns the value of thegrpcHostrecord component.intgrpcPort()Returns the value of thegrpcPortrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of themetricsConfigrecord component.Returns the value of theplayerDataConfigrecord component.Returns the value of theplayerSessionConfigrecord component.Returns the value of theserverNamerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
TachyonConfig
public TachyonConfig(String serverName, String grpcHost, int grpcPort, MetricsConfig metricsConfig, AuditConfig auditConfig, PlayerSessionConfig playerSessionConfig, PlayerDataConfig playerDataConfig) Creates an instance of aTachyonConfigrecord class.- Parameters:
serverName- the value for theserverNamerecord componentgrpcHost- the value for thegrpcHostrecord componentgrpcPort- the value for thegrpcPortrecord componentmetricsConfig- the value for themetricsConfigrecord componentauditConfig- the value for theauditConfigrecord componentplayerSessionConfig- the value for theplayerSessionConfigrecord componentplayerDataConfig- the value for theplayerDataConfigrecord component
-
-
Method Details
-
fromFile
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
serverName
Returns the value of theserverNamerecord component.- Returns:
- the value of the
serverNamerecord component
-
grpcHost
Returns the value of thegrpcHostrecord component.- Returns:
- the value of the
grpcHostrecord component
-
grpcPort
public int grpcPort()Returns the value of thegrpcPortrecord component.- Returns:
- the value of the
grpcPortrecord component
-
metricsConfig
Returns the value of themetricsConfigrecord component.- Returns:
- the value of the
metricsConfigrecord component
-
auditConfig
Returns the value of theauditConfigrecord component.- Returns:
- the value of the
auditConfigrecord component
-
playerSessionConfig
Returns the value of theplayerSessionConfigrecord component.- Returns:
- the value of the
playerSessionConfigrecord component
-
playerDataConfig
Returns the value of theplayerDataConfigrecord component.- Returns:
- the value of the
playerDataConfigrecord component
-