Record Class PlayerDataConfig
java.lang.Object
java.lang.Record
tech.skworks.tachyon.plugin.core.playerdata.PlayerDataConfig
-
Constructor Summary
ConstructorsConstructorDescriptionPlayerDataConfig(int dataLoadingMaxAttempts, int dataLoadingCycleDelay, String dataLoadingKickMsg, boolean enableDataAutoSave, int dataAutoSaveDelay) Creates an instance of aPlayerDataConfigrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thedataAutoSaveDelayrecord component.intReturns the value of thedataLoadingCycleDelayrecord component.Returns the value of thedataLoadingKickMsgrecord component.intReturns the value of thedataLoadingMaxAttemptsrecord component.booleanReturns the value of theenableDataAutoSaverecord component.final booleanIndicates whether some other object is "equal to" this one.static PlayerDataConfigfromFile(@NotNull org.bukkit.configuration.file.FileConfiguration fileConfiguration) final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PlayerDataConfig
public PlayerDataConfig(int dataLoadingMaxAttempts, int dataLoadingCycleDelay, String dataLoadingKickMsg, boolean enableDataAutoSave, int dataAutoSaveDelay) Creates an instance of aPlayerDataConfigrecord class.- Parameters:
dataLoadingMaxAttempts- the value for thedataLoadingMaxAttemptsrecord componentdataLoadingCycleDelay- the value for thedataLoadingCycleDelayrecord componentdataLoadingKickMsg- the value for thedataLoadingKickMsgrecord componentenableDataAutoSave- the value for theenableDataAutoSaverecord componentdataAutoSaveDelay- the value for thedataAutoSaveDelayrecord component
-
-
Method Details
-
fromFile
public static PlayerDataConfig 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
dataLoadingMaxAttempts
public int dataLoadingMaxAttempts()Returns the value of thedataLoadingMaxAttemptsrecord component.- Returns:
- the value of the
dataLoadingMaxAttemptsrecord component
-
dataLoadingCycleDelay
public int dataLoadingCycleDelay()Returns the value of thedataLoadingCycleDelayrecord component.- Returns:
- the value of the
dataLoadingCycleDelayrecord component
-
dataLoadingKickMsg
Returns the value of thedataLoadingKickMsgrecord component.- Returns:
- the value of the
dataLoadingKickMsgrecord component
-
enableDataAutoSave
public boolean enableDataAutoSave()Returns the value of theenableDataAutoSaverecord component.- Returns:
- the value of the
enableDataAutoSaverecord component
-
dataAutoSaveDelay
public int dataAutoSaveDelay()Returns the value of thedataAutoSaveDelayrecord component.- Returns:
- the value of the
dataAutoSaveDelayrecord component
-