an incredibly basic and fast data saving and writing library. I threw this together so i use it in my projects.
i used this in a few projects, but those never really made it to the light of day. Please use literally any other better data API.
in your build.grade
file,
repositories {
flatDir {
dirs 'YOUR_LIBRARY_FOLDER_NAME'
}
}
dependencies {
modImplementation 'me.wolfie.dataentry:1.0' // this will look for a file called "1.0", so you might want to change that.
}
there are two things you really need to know when using this cursed abomination mod:
ThreadedDataReader
ThreadedDataWriter
public void WriteData(){
Object data = "an object can be anything!";
new ThreadedDataWriter().Write("ModID","VariableID",data);
}
public void ReadData(){
Object data;
ThreadedDataReader reader = new ThreadedDataReader();
reader.Read("ModID","VariableID");
data = reader.output;
}
possibly, as long as you don't need advanced and complicated file structures.
as of the time this is being written, client and server data will not be synced.
This is due to the fact that there is no real way to handle the syncing of large files in a reasonable matter.
that im lazy.
expect to see this in my current (possibly) and future mods. standard MIT license stuff applies here too and so on.