Record Class PlayerDataConfig

java.lang.Object
java.lang.Record
tech.skworks.tachyon.plugin.core.playerdata.PlayerDataConfig

public record PlayerDataConfig(int dataLoadingMaxAttempts, int dataLoadingCycleDelay, String dataLoadingKickMsg, boolean enableDataAutoSave, int dataAutoSaveDelay) extends Record
Project Tachyon Class PlayerDataConfig
Since:
1.0.0-SNAPSHOT
Version:
1.0
Author:
Jimmy (vSKAH) - 24/04/2026
  • Constructor Summary

    Constructors
    Constructor
    Description
    PlayerDataConfig(int dataLoadingMaxAttempts, int dataLoadingCycleDelay, String dataLoadingKickMsg, boolean enableDataAutoSave, int dataAutoSaveDelay)
    Creates an instance of a PlayerDataConfig record class.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the value of the dataAutoSaveDelay record component.
    int
    Returns the value of the dataLoadingCycleDelay record component.
    Returns the value of the dataLoadingKickMsg record component.
    int
    Returns the value of the dataLoadingMaxAttempts record component.
    boolean
    Returns the value of the enableDataAutoSave record component.
    final boolean
    Indicates whether some other object is "equal to" this one.
    fromFile(@NotNull org.bukkit.configuration.file.FileConfiguration fileConfiguration)
     
    final int
    Returns a hash code value for this object.
    final String
    Returns a string representation of this record class.

    Methods inherited from class Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • PlayerDataConfig

      public PlayerDataConfig(int dataLoadingMaxAttempts, int dataLoadingCycleDelay, String dataLoadingKickMsg, boolean enableDataAutoSave, int dataAutoSaveDelay)
      Creates an instance of a PlayerDataConfig record class.
      Parameters:
      dataLoadingMaxAttempts - the value for the dataLoadingMaxAttempts record component
      dataLoadingCycleDelay - the value for the dataLoadingCycleDelay record component
      dataLoadingKickMsg - the value for the dataLoadingKickMsg record component
      enableDataAutoSave - the value for the enableDataAutoSave record component
      dataAutoSaveDelay - the value for the dataAutoSaveDelay record component
  • Method Details

    • fromFile

      public static PlayerDataConfig fromFile(@NotNull @NotNull org.bukkit.configuration.file.FileConfiguration fileConfiguration)
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with the compare method from their corresponding wrapper classes.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • dataLoadingMaxAttempts

      public int dataLoadingMaxAttempts()
      Returns the value of the dataLoadingMaxAttempts record component.
      Returns:
      the value of the dataLoadingMaxAttempts record component
    • dataLoadingCycleDelay

      public int dataLoadingCycleDelay()
      Returns the value of the dataLoadingCycleDelay record component.
      Returns:
      the value of the dataLoadingCycleDelay record component
    • dataLoadingKickMsg

      public String dataLoadingKickMsg()
      Returns the value of the dataLoadingKickMsg record component.
      Returns:
      the value of the dataLoadingKickMsg record component
    • enableDataAutoSave

      public boolean enableDataAutoSave()
      Returns the value of the enableDataAutoSave record component.
      Returns:
      the value of the enableDataAutoSave record component
    • dataAutoSaveDelay

      public int dataAutoSaveDelay()
      Returns the value of the dataAutoSaveDelay record component.
      Returns:
      the value of the dataAutoSaveDelay record component