Giter Site home page Giter Site logo

anopensaucedev / datahandlermod Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 0.0 448 KB

an incredibly basic and fast data saving and writing library for my mods

License: MIT License

Java 100.00%
library fabricmc mod basic easy-to-use minecraft minecraft-mod dumb cursed help

datahandlermod's Introduction

dataHandlingLib

an incredibly basic and fast data saving and writing library. I threw this together so i use it in my projects.

---THIS MOD HAS BEEN RETIRED---

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.

๐Ÿค” how to use this

๐Ÿ”ง setup

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.
}

๐Ÿ’ป writing code for this

there are two things you really need to know when using this cursed abomination mod:

  1. ThreadedDataReader
  2. ThreadedDataWriter

โœ Writing Data

public void WriteData(){
Object data = "an object can be anything!";
new ThreadedDataWriter().Write("ModID","VariableID",data);
}

๐Ÿ“– Reading Data

public void ReadData(){
Object data;
ThreadedDataReader reader = new ThreadedDataReader();
 reader.Read("ModID","VariableID");
 data = reader.output;
}

is this for you?

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.

side notes

expect to see this in my current (possibly) and future mods. standard MIT license stuff applies here too and so on.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.