@Callback(doc = "function(marker:table):table -- Adds the marker to the end of the marker list") @Optional.Method(modid = "OpenComputers") public Object[] addMarker(Context context, Arguments args) throws Exception { return addMarkerImplementation(args.checkTable(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)); }
@Callback(doc = "function(list:table):table -- Sets list of markers") @Optional.Method(modid = "OpenComputers") public Object[] setMarkers(Context context, Arguments args) throws Exception { return setMarkersImplementation(args.checkTable(0)); }