Formation tweaks

This commit is contained in:
Anuken
2020-08-16 18:51:17 -04:00
parent 2bb2964790
commit 91c1c004c7
6 changed files with 46 additions and 4 deletions
+10
View File
@@ -21,5 +21,15 @@ const extend = function(classType, params){
return new JavaAdapter(classType, params)
}
//these are not sctrictly necessary, but are kept for edge cases
const run = method => new java.lang.Runnable(){run: method}
const boolf = method => new Boolf(){get: method}
const boolp = method => new Boolp(){get: method}
const floatf = method => new Floatf(){get: method}
const floatp = method => new Floatp(){get: method}
const cons = method => new Cons(){get: method}
const prov = method => new Prov(){get: method}
const func = method => new Func(){get: method}
const newEffect = (lifetime, renderer) => new Effects.Effect(lifetime, new Effects.EffectRenderer({render: renderer}))
Call = Packages.mindustry.gen.Call