Klasse AbstractSave

java.lang.Object
com.viaversion.viafabricplus.save.AbstractSave
Bekannte direkte Unterklassen:
AccountsSave, SettingsSave

public abstract class AbstractSave extends Object
This class can be used to save data to a file.
  • Feldübersicht

    Felder
    Modifizierer und Typ
    Feld
    Beschreibung
    static final com.google.gson.Gson
     
  • Konstruktorübersicht

    Konstruktoren
    Konstruktor
    Beschreibung
     
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
     
    void
    This method should be called when the file should be initialized.
    void
     
    abstract void
    read(com.google.gson.JsonObject object)
     
    void
    This method should be called when the file should be saved.
    abstract void
    write(com.google.gson.JsonObject object)
     

    Von Klasse geerbte Methoden java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Felddetails

    • GSON

      public static final com.google.gson.Gson GSON
  • Konstruktordetails

    • AbstractSave

      public AbstractSave(String name)
      Parameter:
      name - The name of the file.
  • Methodendetails

    • init

      public void init()
      This method should be called when the file should be initialized. It will read the file and call the read(JsonObject) method.
    • save

      public void save()
      This method should be called when the file should be saved.
    • write

      public abstract void write(com.google.gson.JsonObject object)
    • read

      public abstract void read(com.google.gson.JsonObject object)
    • postInit

      public void postInit()
    • getPath

      public Path getPath()