preparing fluid updater: debug water bucket

This commit is contained in:
Minjae Song
2018-12-12 23:29:30 +09:00
parent 27f79238a1
commit 1f1d6f1eda
9 changed files with 67 additions and 200 deletions

View File

@@ -229,6 +229,8 @@ object ModMgr {
val className = it["classname"].toString()
val itemID = it["id"].toInt()
printdbg(this, "Reading item #$itemID with className $className")
val loadedClass = Class.forName(className)
val loadedClassConstructor = loadedClass.getConstructor(ItemID::class.java)
val loadedClassInstance = loadedClassConstructor.newInstance(itemID)