Make Java Modding Binding for Minetest

For people working on the C++ code.
User avatar
LMD
Member
 
Posts: 41
Joined: Sat Apr 08, 2017 08:16
In-game: Limo

Make Java Modding Binding for Minetest

by LMD » Sat Apr 08, 2017 08:26

I'd like to make a library using java, so that mods can also be made in java. Where is the c++ file the modding functions are saved in ? How could I provide compatibility with java ? Probably using a txt file where blocks, items, tools, terrains etc are registered in, for example, where c and java can both write and read ?

EDIT :

Something as LUAJ may be a possibility...
Last edited by LMD on Sat Dec 09, 2017 17:01, edited 1 time in total.
 

User avatar
rubenwardy
Moderator
 
Posts: 4868
Joined: Tue Jun 12, 2012 18:11
Location: United Kingdom
GitHub: rubenwardy
IRC: rubenwardy
In-game: rubenwardy
 

User avatar
Beerholder
Member
 
Posts: 157
Joined: Wed Aug 03, 2016 20:23
In-game: Beerholder

Re: Make Java Modding Binding for minetest

by Beerholder » Sun Apr 09, 2017 13:49

There are multiple files containing the various functions. One thing to keep in mind: Java is not a scripting language so you either have to provide the .class files to the embedded VM or you will have to call the javac compiler e.g. javax.tools.JavaCompiler in case you would like .java source files to be compiled at runtime. The latter requires for the development kit to be installed besides the JRE on clients where you need to support this.
 


Return to Partly official engine development



Who is online

Users browsing this forum: No registered users and 2 guests