Home›Java›Mods›DataBase
ModsJava

DataBase

Java mod listed for Minecraft 1.13. Download on the author's site.

⬇ Download on Spigot
Features:
Installation:
  1. Download the file from github, or there is an external link:
    [Link]
  2. Drag and drop the .java file to your project!
  3. Done!
Basic:
You everywhere can use name.yml format insead of name
Spoiler: Setting a folder
Code (Java):
//There is two way of:

//You call the class like:
db = new DataBase ( this , "foldername" ) ;

//You can set in another line:
db. setFolder ( "foldername" ) ;
Spoiler: Creating a new file
Code (Java):
db. create ( "Name" ) ;
//You don't need to save the file after creating.
Spoiler: Saving the file
Code (Java):
db. save ( "Name" ) ;
 
Spoiler: Deleting a file
Code (Java):
db. delete ( "Name" ) ;
Spoiler: Checking the success
Code (Java):
//You can check the success of save , delete, create methods
boolean success = save ( "name.yml" ) ;
boolean success = create ( "name.yml" ) ;
boolean success = delete ( "name.yml" ) ;
Spoiler: Setting a value
Code (Java):
db - getYML ( "Name.yml" ) ;
//And after getYML() you can do everything like a getConfig().
//Examples:
db. getYML ( "Name.yml" ) . createSection ( "test" ) ;
//Never forget saving!
db. save ( "Name.yml" ) ;
Spoiler: Getting a value
Code (Java):
String a1 = db. getYML ( "Name" ) . getString ( "teszt.a1" ) ;
 
Spoiler: Checking the file is exist in the DataBase
Code (Java):
db. containsFile ( "Name.yml" ) ;

//Example:
if ( db. containsFile ( "Name.yml" ) ) {
  p. sendMessage ( "True!" ) ;
}
Spoiler: Clearing or Deleting a folder
Code (Java):
db. clearFolder ( ) ;
//This is delete all files from the folder

db. deleteFolder ( ) ;
//This is delete the folder and delete all files from it

get methods:
Code (Java):
db. getFolderFile ( ) ; //returns a File variable
Code (Java):
db. getFolderName ( ) ; //returns a String variable
Code (Java):
db. getFolderFileCount ( ) ; //returns an int variable, which is the number of how many files in the folder
Code (Java):
db. getFolderFiles ( ) ; //returns the all files from the folder
Code (Java):
db. getFolderSize ( ) ; //returns a long , which is the folder size in kilobytes
Code (Java):
db. getFileSize ( "Name" ) ; //returns a long, which is the size of the file in kilobytes.
Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

DataBase is a free Minecraft Java mod. Compatible with Minecraft 1.13. Downloaded 149 times (via Spigot). Download it and open it directly in the game.

Explore more