コード例 #1
0
 @Callback(doc = "function(markerNum:number):table -- gets a specific marker")
 @Optional.Method(modid = "OpenComputers")
 public Object[] getMarker(Context context, Arguments args) throws Exception {
   return getMarkerImplementation((double) args.checkInteger(0));
 }
コード例 #2
0
 @Callback(doc = "function(markerNum:number,marker:table):table -- saves current marker")
 @Optional.Method(modid = "OpenComputers")
 public Object[] saveMarker(Context context, Arguments args) throws Exception {
   return saveMarkerImplementation((double) args.checkInteger(0), args.checkTable(0));
 }