package ethanjones.cubes.core.lua;

import org.luaj.vm2.LuaTable;

public class LuaMappingCubes {

  // populated by IDManager.loaded()
  public static LuaTable blocks = new LuaTable();
  public static LuaTable items = new LuaTable();

  public static Class world = LuaMappingWorld.class;
}

@@ -40,252 +40,1245 @@
 ort 
-org.luaj.vm2.LuaTable;%0A%0Apublic class LuaMappingCubes %7B%0A%0A  // populated by IDManager.loaded()%0A  public static LuaTable blocks = new LuaTable();%0A  public static LuaTable items = new LuaTable();%0A%0A  public static Class world = LuaMappingWorld.class
+ethanjones.cubes.core.platform.Adapter;%0Aimport ethanjones.cubes.core.platform.Compatibility;%0Aimport ethanjones.cubes.core.system.Branding;%0A%0Aimport org.luaj.vm2.LuaTable;%0Aimport org.luaj.vm2.LuaValue;%0Aimport org.luaj.vm2.lib.ZeroArgFunction;%0A%0Apublic class LuaMappingCubes %7B%0A%0A  // populated by IDManager.loaded()%0A  public static LuaTable blocks = new LuaTable();%0A  public static LuaTable items = new LuaTable();%0A%0A  public static Class world = LuaMappingWorld.class;%0A%0A  public static ZeroArgFunction isDedicatedServer = new ZeroArgFunction() %7B%0A    @Override%0A    public LuaValue call() %7B%0A      return LuaValue.valueOf(Adapter.isDedicatedServer());%0A    %7D%0A  %7D;%0A%0A  public static ZeroArgFunction getApplicationType = new ZeroArgFunction() %7B%0A    @Override%0A    public LuaValue call() %7B%0A      return LuaValue.valueOf(Compatibility.get().getApplicationType().toString());%0A    %7D%0A  %7D;%0A%0A  public static ZeroArgFunction getVersion = new ZeroArgFunction() %7B%0A    @Override%0A    public LuaValue call() %7B%0A      return LuaValue.valueOf(Branding.VERSION_MAJOR_MINOR_POINT);%0A    %7D%0A  %7D;%0A%0A  public static ZeroArgFunction getBuild = new ZeroArgFunction() %7B%0A    @Override%0A    public LuaValue call() %7B%0A      return LuaValue.valueOf(Branding.VERSION_BUILD);%0A    %7D%0A  %7D
 ;%0A%7D%0A

Add functions for getting cubes version to LuaMappingCubes